Skip to content
Snippets Groups Projects
Commit ab0abb90 authored by xaralis's avatar xaralis
Browse files

feat: avoid attempting token refresh when user is already logged out

parent 5147b735
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment