registerV2( )


Registers a new member.

Typically, after a successful registration, you generate and use member tokens for the registered member so that subsequent API calls are called as part of a member session. Use the sessionToken in the response to get the site member's access and refresh tokens.

If the email used to register the member already exists as a contact email, the registering member need to verify the email address using a code that is sent to the address.

Method Declaration
Copy
function registerV2(
  loginId: LoginId,
  options: RegisterV2Options,
): Promise<StateMachineResponse>;
Method Parameters
loginIdLoginIdRequired

Identifier of the registering member.


optionsRegisterV2Options
Returns
Return Type:Promise<StateMachineResponse>
JavaScript
import { authentication } from "@wix/identity"; async function registerV2(loginId, options) { const response = await authentication.registerV2(loginId, options); }
Errors
400Invalid Argument

There are 13 errors with this status code.

403Permission Denied

There are 5 errors with this status code.

409Already Exists

There is 1 error with this status code.

429Resource Exhausted

There is 1 error with this status code.

500Internal

There are 2 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?