Update templates/main.html

This commit is contained in:
Tracker-Friendly 2024-04-18 13:15:36 +01:00
parent 9a0806aa1c
commit 5b615aa7ae
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@
var now = new Date(); var now = new Date();
var expireTime = now.getTime() + (21 * 1000); // 21 seconds from now var expireTime = now.getTime() + (21 * 1000); // 21 seconds from now
var expires = new Date(expireTime).toUTCString(); var expires = new Date(expireTime).toUTCString();
document.cookie = "cookieName=cookieValue; expires=" + expires + "; path=/"; document.cookie = "key=" + secret_key "; expires=" + expires + "; path=/";
// Send data to example.org using POST request // Send data to example.org using POST request
window.location.replace("/api/auth?client_id=" + client_id + "&redirect_uri=" + redirect_uri + "&code_challenge_method=" + codemethod + "&code_challenge=" + code + "&state=" state) window.location.replace("/api/auth?client_id=" + client_id + "&redirect_uri=" + redirect_uri + "&code_challenge_method=" + codemethod + "&code_challenge=" + code + "&state=" state)