Refresh page on logout
This commit is contained in:
parent
f7211e3f87
commit
9b6d50fa42
@ -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();
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user