Skip to content
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

Enable user to delete all data and create new password #118

Closed
j-berman opened this issue Feb 27, 2020 · 0 comments
Closed

Enable user to delete all data and create new password #118

j-berman opened this issue Feb 27, 2020 · 0 comments

Comments

@j-berman
Copy link
Collaborator

j-berman commented Feb 27, 2020

Overview

As proposed by @alexcnichols in #59, in addition to Userbase's current forgot password mechanism (#103), it would be a nice feature to allow users who lose their password to delete all their data and create a new password.

Proposed Implementation

  • A user must have an email saved on their account.
  • A developer can call a new Userbase SDK function resetAccount({ username }) or something similar, which sends a message to the user's email.
  • The message will contain a temporary reset password that will expire after 24 hours.
  • The user simply has to provide that value as their password to signIn().
  • If the user provides the correct reset password to signIn(), Userbase will mark all the user's old data for deletion (to be deleted asynchronously in the nightly purge) then allow the user to sign in normally (& create a new password).

Note, the user's plaintext data (profile + protectedProfile) would not be deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant