-
-
Notifications
You must be signed in to change notification settings - Fork 202
Description
Bug report
- I confirm this is a bug with Supabase, not with my own application.
- I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
About 2-3 days after logging in, the user gets automatically logged out (we are using the OTP login and use the API on iOS and macOS). Checking the error messages, we see:
api(Auth.AuthError.APIError(msg: nil, code: nil, error: Optional("invalid_grant"), errorDescription: Optional("Invalid Refresh Token: Refresh Token Not Found"), weakPassword: nil))
To Reproduce
Using the Swift API of Supabase, login, use the app for 2-3 days and you will get logged out.
Expected behavior
User should stay logged in indefinitely or as per the settings (see additional information).
System information
- OS: macOS, iOS
- Version of supabase-swift: 2.15.2
Additional context
We have tried to increase the rate limits:
Token Refreshes = 184
Token Verifications = 100
Sign ups and sign ins = 50
Time-box user sessions = 0
Inactivity timeout = 0
Access Tokens expiry time = 10800 (3 hours)
Refresh token reuse interval = 30
Let me know if the settings can cause this.