diff --git a/packages/auth-provider/src/components/AuthProvider/AuthProvider.tsx b/packages/auth-provider/src/components/AuthProvider/AuthProvider.tsx index b577f4a..95bb45b 100644 --- a/packages/auth-provider/src/components/AuthProvider/AuthProvider.tsx +++ b/packages/auth-provider/src/components/AuthProvider/AuthProvider.tsx @@ -48,6 +48,12 @@ export const AuthProvider = ({ logoutReason: "", userId: jwt.payload[JWT.USER_ID_KEY] as string, }); + } else { + setAuthState({ + isAuthenticated: false, + logoutReason: EXPIRED_SESSION, + userId: "", + }); } } catch (_error) { setAuthState({