diff --git a/src/actions/users.js b/src/actions/users.js index c3a626698be9b0fde216194336a6317767dad1fd..d6795f88a47c7341e65f6e08d0b3e5b8947b6194 100644 --- a/src/actions/users.js +++ b/src/actions/users.js @@ -94,8 +94,14 @@ export const inviteToJitsi = createAsyncAction( ); export const refreshAccessToken = async () => { + const { isAuthenticated } = AuthStore.getRawState(); + + if (!isAuthenticated) { + return; + } + try { - await keycloak.updateToken(300); + await keycloak.updateToken(60); console.info("[auth] access token refreshed"); } catch (exc) { console.warn(