File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -143,23 +143,14 @@ export const AuthModal: React.FC<AuthModalProps> = ({
143
143
144
144
const handleAppleSignIn = async ( ) => {
145
145
setIsLoading ( true ) ;
146
- setMessage ( "Redirecting to Apple..." ) ; // User feedback
147
146
try {
148
147
// Save last used method
149
148
const method = { type : "apple" , value : "Apple" } ;
150
149
setLastUsedMethod ( method ) ;
151
150
localStorage . setItem ( "lastUsedAuthMethod" , JSON . stringify ( method ) ) ;
152
-
153
- const result = await signInWithApple ( ) ;
154
-
155
- if ( ! result . success && result . error ) {
156
- setMessage ( result . error ) ;
157
- setIsLoading ( false ) ;
158
- }
159
- // Note: For Apple OAuth, loading state will be reset when the modal auto-closes
160
- // or when the page redirects. Don't reset here for successful redirects.
151
+ await signInWithApple ( ) ;
161
152
} catch ( error ) {
162
- setMessage ( "Failed to sign in with Apple. Please try again. " ) ;
153
+ setMessage ( "Failed to sign in with Apple" ) ;
163
154
setIsLoading ( false ) ;
164
155
}
165
156
} ;
You can’t perform that action at this time.
0 commit comments