From 9b6d50fa42b12248f3a2284a8a0a851a6a923178 Mon Sep 17 00:00:00 2001 From: ztimson Date: Tue, 7 Jan 2025 15:09:23 -0500 Subject: [PATCH] Refresh page on logout --- src/services/momentum.service.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/services/momentum.service.ts b/src/services/momentum.service.ts index c62dbbb..7851cb1 100644 --- a/src/services/momentum.service.ts +++ b/src/services/momentum.service.ts @@ -30,4 +30,7 @@ export const momentum = new Momentum(environment.apiUrl, { }); momentum.client.inject(true); -momentum.on('auth/session-expired', () => momentum.auth.logout()); +momentum.on('auth/session-expired', () => { + momentum.auth.logout(); + location.reload(); +});