Userbase

Docs : SDK : forgotPassword

forgotPassword lets you send a temporary password to the user's email address. This API will return a promise that gets resolved once the email with the temporary password has been sent. The user can then provide the temporary password to signIn and updateUser to change their password.

    
      userbase.forgotPassword({
        username: 'example-username'
      }).then(() => {
        // email with temporary password sent
      }).catch((e) => console.error(e))
    
  

Parameters

Notes

Errors