File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -123,6 +123,19 @@ export const AuthModal: React.FC<AuthModalProps> = ({
123
123
} ;
124
124
125
125
const handleAppleSignIn = async ( ) => {
126
+ // Debug: Store that modal function was called
127
+ if ( typeof window !== "undefined" ) {
128
+ try {
129
+ sessionStorage . setItem (
130
+ "apple_modal_handler_called" ,
131
+ new Date ( ) . toISOString ( ) ,
132
+ ) ;
133
+ ( window as any ) . appleModalHandlerCalled = true ;
134
+ } catch ( e ) {
135
+ // Ignore storage errors
136
+ }
137
+ }
138
+
126
139
setIsLoading ( true ) ;
127
140
try {
128
141
// Save last used method
Original file line number Diff line number Diff line change @@ -98,6 +98,19 @@ export const AuthProvider: React.FC<AuthProviderProps> = ({ children }) => {
98
98
} ;
99
99
100
100
const signInWithApple = async ( ) => {
101
+ // Debug: Store that this function was called
102
+ if ( typeof window !== "undefined" ) {
103
+ try {
104
+ sessionStorage . setItem (
105
+ "apple_auth_context_called" ,
106
+ new Date ( ) . toISOString ( ) ,
107
+ ) ;
108
+ ( window as any ) . appleAuthContextCalled = true ;
109
+ } catch ( e ) {
110
+ // Ignore storage errors
111
+ }
112
+ }
113
+
101
114
try {
102
115
const result = await AuthService . createAppleSession ( ) ;
103
116
return {
You can’t perform that action at this time.
0 commit comments