Skip to content

Change Password (using Request)

Changes a user's password and logs him out from all devices. Requires a password reset id.

Usage

Node.js / Next.js / Express.js

await provider.auth.changePasswordUsingRequest('<request_id>', '<new_password>');

Arguments

NameTypeDescription
requestIdstringRequired. The activation/reset ID (24 chars).
newPasswordstringRequired. The new password.

Response

Type: Promise<void>

Returns nothing (void) upon success.

Errors

  • BAD_REQUEST: One or more body params are invalid.
  • UNKNOWN_ERROR: An unknown error has occured.