From 37f244e46b58149768ec3c4b6de2d0943a658af5 Mon Sep 17 00:00:00 2001 From: pavel Date: Wed, 11 Feb 2026 00:00:02 +0100 Subject: [PATCH] fix token refresh --- frontend/src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/main.js b/frontend/src/main.js index 3085bd6..3e5100f 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -555,7 +555,7 @@ async function handleCallback() { } loginBtn.addEventListener('click', () => { - const authUrl = `${AUTH_CONFIG.authorizeEndpoint}?client_id=${AUTH_CONFIG.clientId}&response_type=code&redirect_uri=${encodeURIComponent(AUTH_CONFIG.redirectUri)}&scope=openid profile email`; + const authUrl = `${AUTH_CONFIG.authorizeEndpoint}?client_id=${AUTH_CONFIG.clientId}&response_type=code&redirect_uri=${encodeURIComponent(AUTH_CONFIG.redirectUri)}&scope=openid profile email offline_access`; window.location.href = authUrl; });