resetPwdWithToken method
Resets the password of the user using the access token provided through the sendResetPwdEmail flow.
accessToken
The access token that is retrieved from
the redirect URL query string parameter
newPassword
The new password of the user
Implementation
Future<APIError?> resetPwdWithToken(
String accessToken, String newPassword) async =>
(await _fetcher.post<dynamic>(
'/_api/rest/v1/auth/reset-pwd?key=$accessToken',
body: {'newPassword': newPassword}))
.errors;