MagineKitCredentialStore
public struct MagineKitCredentialStore
Used to store JSON Web Token in keychain
-
Convenience for accessing
passwordproperty fromcredentialDeclaration
Swift
public var token:String? -
Convenience method for creating a
NSURLCredentialand setting it to theprotectionSpaceDeclaration
Swift
public func set(token: String, withUser user:String? = nil) -
We don’t want to call add unecessary as it might hit iCloud for synchronoization once we switch over to
NSURLCredentialPersistence.synchronizableDeclaration
Swift
public func replace(credentialWith newCredential:URLCredential?)
View on GitHub
MagineKitCredentialStore Struct Reference