Update Forgotten Password
auth.forgotPassword()
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
})