Restore Credentials from Keychain (#1171)

This commit is contained in:
Nathan Mattes 2023-11-18 18:52:19 +01:00 committed by GitHub
parent 6e149cd505
commit 1fabe5f776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 3 deletions

View File

@ -160,9 +160,11 @@ extension ShareViewController {
extension ShareViewController {
private func setupAuthContext() throws -> AuthContext? {
let _authentication = AuthenticationServiceProvider.shared.authenticationSortedByActivation().first
let _authContext = _authentication.flatMap { AuthContext(authentication: $0) }
return _authContext
AuthenticationServiceProvider.shared.restore()
let authentication = AuthenticationServiceProvider.shared.authenticationSortedByActivation().first
let authContext = authentication.flatMap { AuthContext(authentication: $0) }
return authContext
}
private func setupHintLabel() {