Skip to content

Commit 6c24b1f

Browse files
committed
Correctly catch couldNotParseAccessCode error on OAuthSession
1 parent bb4f427 commit 6c24b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GravatarUI/SwiftUI/OAuthSession/OAuthSession.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public struct OAuthSession: Sendable {
8484
await shared.authenticationSession.cancel()
8585
postNotification(.authorizationFinished)
8686
return true
87-
} catch OAuthError.couldNotParseAccessCode(email.rawValue) {
87+
} catch OAuthError.couldNotParseAccessCode {
8888
return false // The URL was not a Gravatar callback URL with a token.
8989
} catch {
9090
await shared.authenticationSession.cancel()

0 commit comments

Comments
 (0)