Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Password

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private Readonly store

store: Store

Methods

update

  • Change the password belonging to the provided user's access token.

    const client = new OutsetaApiClient({
      subdomain: 'test-company',
      accessToken: jwt_user_token
    });
    const response = await client.user.password.update(existingPassword, newPassword);
    console.log(response);
    
    throws

    Response If the server returns a non-"OK" or non-"400" status, the whole response object will be thrown.

    Parameters

    • existingPassword: string
    • newPassword: string

    Returns Promise<null | ValidationError<Person>>

    Null if response status OK, or the response body with validation errors if response status 400.

Generated using TypeDoc