confirmPasswordReset method
Confirms password reset with a new password.
code The reset code.
newPassword The new password.
Resets the password using the code.
Returns a Future that completes when password is reset.
Throws FusabaseAuthException on failure.
Example:
await auth.confirmPasswordReset(code: 'resetCode', newPassword: 'newPass');
Implementation
Future<void> confirmPasswordReset({
required String code,
required String newPassword,
}) async {
await _initFuture;
await _authHelper.confirmPasswordResetHelper(
client: createClient(app),
code: code,
newPassword: newPassword,
);
}