We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 162067e commit a2c15cfCopy full SHA for a2c15cf
lib/appwrite/auth.ts
@@ -78,6 +78,20 @@ export class AuthService {
78
redirectUrl,
79
);
80
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
+
95
if (typeof url === "string") {
96
window.location.href = url;
97
}
0 commit comments