-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh token can be used INDEFINITELY and UNLIMITED times without any restrictions #1901
Comments
Anyway a refresh token can be re-used within 10 seconds of last use. So if you re-use it continuously every 9 seconds, it will continue to work. This is intentional per document linked above. https://github.com/supabase/auth/blob/master/internal/api/token_refresh.go#L187-L188 |
Then it should be falling under this exemption
Can you confirm? |
Yes,I am using the 'the parent of the currently active refresh token'... Let me take another careful look at the documentation, thanks for your reply |
In any case, we can't really adjust the algorithm to be more strict as that causes early session termination issues at scale (only visible over 100k+ users with high activity) as some of these edge cases happen infrequently (but still a lot). If there's any other finding please email [email protected] as these findings might constitute a security problem so we should have a proper disclosure procedure. |
Describe the bug
I discovered that refresh tokens can always be used, even after multiple repeated uses, and even after exceeding the project's configured refresh token reuse interval (default is 10 seconds).
To Reproduce
Use the following command without time or usage limitations:
The text was updated successfully, but these errors were encountered: