Commit
·
7dd5f51
1
Parent(s):
89ceee2
Update index.js
Browse files
index.js
CHANGED
@@ -38,7 +38,7 @@ async function oauthLogin(opts) {
|
|
38 |
throw new Error("oauthLogin is only available in the browser");
|
39 |
}
|
40 |
|
41 |
-
console.log("localstorage before", localStorage);
|
42 |
|
43 |
const hubUrl = opts?.hubUrl || HUB_URL;
|
44 |
const openidConfigUrl = `${new URL(hubUrl).origin}/.well-known/openid-configuration`;
|
@@ -171,7 +171,7 @@ async function oauthLogin(opts) {
|
|
171 |
new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256", new TextEncoder().encode(newCodeVerifier)))
|
172 |
);
|
173 |
|
174 |
-
console.log("localstorage after", localStorage)
|
175 |
|
176 |
if (opensInNewWindow) {
|
177 |
window.open(
|
|
|
38 |
throw new Error("oauthLogin is only available in the browser");
|
39 |
}
|
40 |
|
41 |
+
console.log("localstorage before", JSON.parse(JSON.stringify(localStorage)));
|
42 |
|
43 |
const hubUrl = opts?.hubUrl || HUB_URL;
|
44 |
const openidConfigUrl = `${new URL(hubUrl).origin}/.well-known/openid-configuration`;
|
|
|
171 |
new Uint8Array(await globalThis.crypto.subtle.digest("SHA-256", new TextEncoder().encode(newCodeVerifier)))
|
172 |
);
|
173 |
|
174 |
+
console.log("localstorage after", JSON.parse(JSON.stringify(localStorage)))
|
175 |
|
176 |
if (opensInNewWindow) {
|
177 |
window.open(
|