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; });