Skip to content

Commit 9dff17e

Browse files
fix: Apple SSO try which didn't help
1 parent 97da48f commit 9dff17e

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

components/AuthModal.tsx

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)