-
-
Notifications
You must be signed in to change notification settings - Fork 167
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
RFC: How to handle email updates #57
Comments
PR here: #58 |
Hello, maybe this isn't an issue anymore but after looking around I've found that gotrue reset |
Hi all! I don't suppose there is any progress on this one? I noticed there were a few conflicts on the PR #58 which was from a while back. Ideally, I've love to be able to update the user's email directly without using the |
Hey everyone, updating a user's email requires at least a single confirmation from the user. The typical flow is as follows:
The
@markwcollins user validation is a necessary security feature for email updates. A malicious user can potentially call the email update endpoint, change the user's email to theirs and perform a password reset action which sends a password reset link to the update email address. Closing this for now but feel free to reopen it if i've misunderstood the issue. |
RFC
We need to figure a clean strategy for handling email updates
When a user signs up, GoTrue returns a user
then if they update their email using
PUT /user
, a completely new field is addedIf we update again, the original email stays, but the
new_email
field is updated.I'm sure there is a reason why it was done this way in GoTrue, but I can't figure out why.
Should we standardise the object in this library so that it always returns the current email?
The text was updated successfully, but these errors were encountered: