Questions about Secure Password Change and Reauthentication #34323
Unanswered
FLiliequist
asked this question in
Questions
Replies: 1 comment
-
|
I am also wondering about this field in the configuration: |
Beta Was this translation helpful? Give feedback.
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.
-
Hi, I have some questions about the password update process.
1. Customizing the "recently logged in" time frame
I have enabled the
Secure password changeoption in the email provider settings. The description says:My concern is that 24 hours is a long time. Is it possible to change the time frame? I am guessing this is the line of code that controls this: internal/api/user.go#L150.
2. Requiring the current password instead of email nonce
I am using
supabase.auth.reauthenticateto reauthenticate the user, which triggers a new email containing a nonce. However, i would prefer to require the current password instead. I found the settingauth.email.secure_password_changein the CLI docs which says:However, this is not working for me. Any ideas?
Btw, I have found this comment stating that:
Have I missconfigured something, or is this the default behavior?
3. Sending a reset password email with a session time of 15 minutes
I first tried using
supabase.auth.resetPasswordForEmail, but if i understood it correctly, this will send aMagic Linkto the user. Which will log the user in, which i am afraid will confuse the user.Is there a way to send a reset password email to the user and only giving them a session time for 15 minutes?
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions