Bug report
Describe the bug
Trying to sign out of an invalid/non-existent session throws a [AuthSessionMissingError: Auth session missing!] error and doesn't clear the invalid session from local storage, causing the client to hang.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Login to the same account from two devices.
- Sign out from one device with global scope (removes all sessions)
- Try to sign out from the second device.
- See error.
Expected behavior
The error is correct as the session doesn't exist anymore, but it should clear the invalid session from local storage instead of returning early with an error.
System information
- OS: Windows
- Client: Expo apps
- Version of supabase-js: 2.5.0
- Version of Node.js: 22.13.1
Bug report
Describe the bug
Trying to sign out of an invalid/non-existent session throws a
[AuthSessionMissingError: Auth session missing!]error and doesn't clear the invalid session from local storage, causing the client to hang.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
The error is correct as the session doesn't exist anymore, but it should clear the invalid session from local storage instead of returning early with an error.
System information