1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2025-01-31 09:35:13 +01:00

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

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() {