callResetPasswordFunction

abstract suspend fun callResetPasswordFunction(email: String, newPassword: String, vararg args: Any?)

Call the reset password function configured for the Credentials.Provider.EMAIL_PASSWORD provider.

Parameters

email

the email of the user.

newPassword

the new password of the user.

args

any additional arguments provided to the reset function. All arguments must be able to be converted to a BsonValue.

Throws

ServiceException

if the server failed to confirm the user.