SecureStorage
class SecureStorage : ISecureStorage
Performs auth state storing inside iOS Keychain.
-
key to store auth info
Declaration
Swift
private let key: String -
stores current auth state
Declaration
Swift
private var currentAuthState: OIDAuthState? -
synchronises get/set operations
Declaration
Swift
private let secureStorageQueue: DispatchQueue -
Performs auth state storing.
Declaration
Swift
func setAuthInfo(authInfo: AnyObject, completion: @escaping (Result<Bool, Error>) -> Void)Parameters
authInfoThe auth state to be stored.
completionThe callback to invoke upon storing completion.
-
Returns stored auth state.
Declaration
Swift
func getAuthInfo() -> AnyObject?Return Value
Valid auth state object if the stored object is or nil if no one object is stored.
-
Removes stored auth state.
Declaration
Swift
func removeAuthInfo(completion: @escaping (Result<Bool, Error>) -> Void)Parameters
completionThe callback to invoke upon removal completion.
SecureStorage Class Reference