verifyWithResetPasswordEmailCode
suspend fun Session.verifyWithResetPasswordEmailCode(code: String, newPassword: String, signOutOfOtherSessions: Boolean = false): ClerkResult<SessionVerification, ClerkErrorResponse>
Verifies the current session with a reset password code sent by sendResetPasswordEmailCode, in place of the user's password.
Completing the verification sets the user's password to newPassword. When the result's status is SessionVerification.Status.NEEDS_SECOND_FACTOR, the server holds the new password and sets it only after the second factor passes.
Parameters
code
The code the user received by email.
newPassword
The password to set for the user.
signOutOfOtherSessions
Whether to sign out of the user's other sessions once the password is set.