From 89f239bda5447ae3fb8893e6a057c19879bc257d Mon Sep 17 00:00:00 2001 From: Yll Fejziu Date: Fri, 10 May 2024 13:00:27 +0200 Subject: [PATCH] Fix Apple sign out --- Sources/Apple/AppleAuthenticator.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Apple/AppleAuthenticator.swift b/Sources/Apple/AppleAuthenticator.swift index 9f03e7e..1b2f454 100644 --- a/Sources/Apple/AppleAuthenticator.swift +++ b/Sources/Apple/AppleAuthenticator.swift @@ -49,7 +49,8 @@ extension AppleAuthenticator: Authenticator { /// Clears the signIn footprint and logs out the user immediatelly. public func signOut() { storage.removeObject(forKey: storageUserIdKey) - rejectSignIn(with: .cancelled) + storage.setValue(false, forKey: storageAuthenticatedKey) + continuation = nil } /// Returns the current authentication state.