Commit
·
9248d57
1
Parent(s):
54de70b
Update index.js
Browse files
index.js
CHANGED
|
@@ -94,6 +94,8 @@ async function oauthLogin(opts) {
|
|
| 94 |
throw new Error("Invalid oauth state in redirected URL");
|
| 95 |
}
|
| 96 |
|
|
|
|
|
|
|
| 97 |
const tokenRes = await fetch(opendidConfig.token_endpoint, {
|
| 98 |
method: "POST",
|
| 99 |
headers: {
|
|
@@ -180,6 +182,7 @@ async function oauthLogin(opts) {
|
|
| 180 |
);
|
| 181 |
|
| 182 |
console.log("localstorage after", JSON.parse(JSON.stringify(localStorage)))
|
|
|
|
| 183 |
|
| 184 |
window.location.href = `${opendidConfig.authorization_endpoint}?${new URLSearchParams({
|
| 185 |
client_id: clientId,
|
|
|
|
| 94 |
throw new Error("Invalid oauth state in redirected URL");
|
| 95 |
}
|
| 96 |
|
| 97 |
+
console.log("codeVerifier", codeVerifier)
|
| 98 |
+
|
| 99 |
const tokenRes = await fetch(opendidConfig.token_endpoint, {
|
| 100 |
method: "POST",
|
| 101 |
headers: {
|
|
|
|
| 182 |
);
|
| 183 |
|
| 184 |
console.log("localstorage after", JSON.parse(JSON.stringify(localStorage)))
|
| 185 |
+
console.log("challenge after", challenge, newCodeVerifier)
|
| 186 |
|
| 187 |
window.location.href = `${opendidConfig.authorization_endpoint}?${new URLSearchParams({
|
| 188 |
client_id: clientId,
|