fix(mobile): unregister push token on invalid session

This commit is contained in:
Arjun Patel
2026-05-26 10:43:15 -07:00
parent 54bc77444b
commit 173c63508a
+2
View File
@@ -172,6 +172,8 @@ export const useAuthStore = create<AuthState>((set, get) => ({
apiClient.setToken(null);
await clearPersistedToken();
set({ status: "unauthenticated", user: null, token: null });
await unregisterPushToken(); // Best-effort
},
clearError: () => set({ error: null }),