Refresh page on logout
All checks were successful
Build Website / Build NPM Project (push) Successful in 43s
Build Website / Tag Version (push) Successful in 10s
Build Website / Build & Push Dockerfile (push) Successful in 43s

This commit is contained in:
Zakary Timson 2025-01-07 15:09:23 -05:00
parent f7211e3f87
commit 9b6d50fa42

View File

@ -30,4 +30,7 @@ export const momentum = new Momentum(environment.apiUrl, {
}); });
momentum.client.inject(true); momentum.client.inject(true);
momentum.on('auth/session-expired', () => momentum.auth.logout()); momentum.on('auth/session-expired', () => {
momentum.auth.logout();
location.reload();
});