Skip to main content
Use setCredentials() to change the credentials of the currently authenticated user.
Applies to Web Component, Window API, and PostMessage. Examples on this page use the Web Component API shape.

Usage

await api.setCredentials({ password: "YOUR_NEW_PASSWORD" });

Prerequisites

  • User must be authenticated.

Input validation

  • password: Required string.
  • Password must meet policy requirements:
    • Minimum 8 characters.
    • At least 1 uppercase letter.
    • At least 1 lowercase letter.
    • At least 1 number.
    • At least 1 special character.

Possible errors

  • UNAUTHORIZED: User not authenticated.
  • INVALID_PAYLOAD: Password does not meet requirements.
  • INTERNAL_ERROR: Failed to update password.

Returns

void