From a594df1c7c9887869b25b53631083310574ad47d Mon Sep 17 00:00:00 2001 From: Emanuel Almeida Date: Tue, 28 Apr 2026 15:03:44 +0100 Subject: [PATCH] =?UTF-8?q?auth:=20sess=C3=B5es=20mais=20longas=20com=20si?= =?UTF-8?q?lent=20renew=20autom=C3=A1tico?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adiciona offline_access ao scope e automaticSilentRenew para renovar tokens silenciosamente sem forçar re-login. Requer Access Token validity aumentado no provider Authentik (de 5min para 8h). Co-Authored-By: Claude Sonnet 4.6 --- src/auth/config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth/config.ts b/src/auth/config.ts index f05b667..e8af633 100644 --- a/src/auth/config.ts +++ b/src/auth/config.ts @@ -5,8 +5,9 @@ export const oidcConfig = { client_id: 'OKRSM2FZeSxJDhoV9e17dGRU1L1NEE1JBdnPVWTO', redirect_uri: window.location.origin + '/callback', post_logout_redirect_uri: window.location.origin, - scope: 'openid profile email', + scope: 'openid profile email offline_access', userStore: new WebStorageStateStore({ store: window.localStorage }), + automaticSilentRenew: true, onSigninCallback: () => { window.history.replaceState({}, document.title, window.location.pathname); },