From 173c63508a2ef8d5854c5fde93fa6c3e0fc5ead9 Mon Sep 17 00:00:00 2001 From: Arjun Patel Date: Tue, 26 May 2026 10:43:15 -0700 Subject: [PATCH] fix(mobile): unregister push token on invalid session --- js/mobile/src/stores/auth-store.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/mobile/src/stores/auth-store.ts b/js/mobile/src/stores/auth-store.ts index 6901fb1..cced9da 100644 --- a/js/mobile/src/stores/auth-store.ts +++ b/js/mobile/src/stores/auth-store.ts @@ -172,6 +172,8 @@ export const useAuthStore = create((set, get) => ({ apiClient.setToken(null); await clearPersistedToken(); set({ status: "unauthenticated", user: null, token: null }); + + await unregisterPushToken(); // Best-effort }, clearError: () => set({ error: null }),