Skip to content

Commit a2c15cf

Browse files
chore: further debug Apple SSO
1 parent 162067e commit a2c15cf

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lib/appwrite/auth.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,20 @@ export class AuthService {
7878
redirectUrl,
7979
);
8080

81+
// Debug: Store what we actually got back from Appwrite for Google
82+
if (typeof window !== "undefined") {
83+
try {
84+
sessionStorage.setItem("google_oauth_response_type", typeof url);
85+
sessionStorage.setItem(
86+
"google_oauth_response_value",
87+
JSON.stringify(url),
88+
);
89+
(window as any).googleOAuthResponse = url;
90+
} catch (e) {
91+
// Ignore storage errors
92+
}
93+
}
94+
8195
if (typeof url === "string") {
8296
window.location.href = url;
8397
}

0 commit comments

Comments
 (0)