Managing a user account
Update forgotten password

Update Forgotten Password


There’s a high chance you forget your password, thus a very important feature is to add the forgot password option. This method allows you to update the password of a user account if the user is not authenticated. Grandeur validates a user with phone authentication in this case.

Use of forgotPassword method has been illustrated in the example below

// Get user data from the inputs and
// Submit request to the server
auth.forgotPassword(email).then((res) => {
  // Handle Response