Reauthentication on password change: Make session age condition configurable #32972
Unanswered
flokle
asked this question in
Feature Requests
Replies: 2 comments
|
+1 |
0 replies
|
Hi everyone, due to inactivity on this issue I've moved the issue over to discussions/enhancements. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Describe the bug
If "Secure Password Change" is enabled, gotrue is currently hardcoded to check if the active session is older than 24 hours. Only if this is the case, the supplied nonce of the updateUser function is checked for validity. The description of the option ("Users will need to be recently logged in to change their password...) in the supabase dashboard implies (at least for me) a much shorter period.
Expected behavior
I would expect a time period more in the range of a few minutes. It would be ideal if one could configure the period in the dashboard and thus also set it to 0, so that the nonce is always required.
I also only noticed this behavior by accident. As long as the 24 hours are not exceeded, a nonce supplied in updateUser is simply ignored, so that, within that period, any value is accepted.
All reactions