MagineKitCredentialStore

public struct MagineKitCredentialStore

Used to store JSON Web Token in keychain

  • Convenience for accessing password property from credential

    Declaration

    Swift

    public var token:String?
  • Convenience method for creating a NSURLCredential and setting it to the protectionSpace

    Declaration

    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.synchronizable

    Declaration

    Swift

    public func replace(credentialWith newCredential:URLCredential?)