resetPassword method

Future<void> resetPassword({
  1. required String email,
  2. required String connection,
  3. Map<String, String> parameters = const {},
})

Initiates a reset of password of the user with the specific email address in the specific connection.

Endpoint

https://auth0.com/docs/api/authentication#change-password

Notes

Calling this endpoint does not reset the user's password in itself, but it asks Auth0 to send the user an email with a link they can use to reset their password on the web.

Arbitrary parameters can be specified and then picked up in a custom Auth0 Action or Rule.

Implementation

Future<void> resetPassword(
        {required final String email,
        required final String connection,
        final Map<String, String> parameters = const {}}) =>
    Auth0FlutterAuthPlatform.instance.resetPassword(_createApiRequest(
        AuthResetPasswordOptions(
            email: email, connection: connection, parameters: parameters)));