mirror of
https://github.com/maxgoedjen/secretive.git
synced 2025-07-12 00:50:57 +00:00
* Add protocol requirements * Load auth settings. * Updates. * Update preview store * Add lock icon
10 lines
455 B
Swift
10 lines
455 B
Swift
import Foundation
|
|
|
|
/// Protocol describing a persisted authentication context. This is an authorization that can be reused for multiple access to a secret that requires authentication for a specific period of time.
|
|
public protocol PersistedAuthenticationContext {
|
|
/// Whether the context remains valid.
|
|
var valid: Bool { get }
|
|
/// The date at which the authorization expires and the context becomes invalid.
|
|
var expiration: Date { get }
|
|
}
|