You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that the Keychain storage has been abstracted out, we'll need to implement the preferred secure storage protocol for Android
#if os(Android)structAndroidStorage:Storage{...}#endifclassKeychain:@uncheckedSendable{
/// Initializes the keychain with an overridden accound identifier.
/// - Parameter account: a key indicating the account owner. Ideally, use the application identifier for this value.
publicinit(_ account:String){assert(account.isNotEmpty,"❌ The account identifier cannot be empty.")#if canImport(Security)self.storage =DefaultStorage(account: account)#elseif os(Android)self.storage =AndroidStorage(account: account)#elseif os(Linux)self.storage =LinuxStorage(account: account)#endif}}
Activity