resetPassword method
Future<ResetPasswordResult>
resetPassword({
- required String username,
- ResetPasswordOptions? options,
Initiates a password reset for the user with the given username.
The username
is a login identifier or an email/phone number, depending on
the configuration.
Optionally accepts plugin-specific, advanced options
for the request.
Implementation
Future<ResetPasswordResult> resetPassword({
required String username,
ResetPasswordOptions? options,
}) {
var request = ResetPasswordRequest(username: username, options: options);
return plugins.length == 1
? plugins[0].resetPassword(request: request)
: throw _pluginNotAddedException('Auth');
}