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> = ({
143143
144144 const handleAppleSignIn = async ( ) => {
145145 setIsLoading ( true ) ;
146- setMessage ( "Redirecting to Apple..." ) ; // User feedback
147146 try {
148147 // Save last used method
149148 const method = { type : "apple" , value : "Apple" } ;
150149 setLastUsedMethod ( method ) ;
151150 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 ( ) ;
161152 } catch ( error ) {
162- setMessage ( "Failed to sign in with Apple. Please try again. " ) ;
153+ setMessage ( "Failed to sign in with Apple" ) ;
163154 setIsLoading ( false ) ;
164155 }
165156 } ;
You can’t perform that action at this time.
0 commit comments