resetPassword

abstract suspend fun resetPassword(token: String, tokenId: String, newPassword: String)

Resets the password of a user with the given token, token id, and new password.

Parameters

token

the reset password token.

tokenId

the id of the reset password token.

newPassword

the new password for the user identified by the token. The password must be between 6 and 128 characters long.

Throws

if the tokens do not map to an existing user.

if the input tokens where rejected by the server for being malformed.

for other failures that can happen when communicating with App Services. See AppException for details.