About the Authentication API

The Wix Authentication API enables you to implement custom member registration and login for headless projects. Use this API to manage user authentication, while ensuring secure access.

With the Wix Authentication API, you can:

  • Register new members and manage their authentication tokens.
  • Log in existing members and maintain their session tokens for secure access.

The Register V 2 and Login V 2 methods include a sessionToken in their response. You can use the session token to get the site member's access and refresh tokens.

Note: You can use the Redirects API to let Wix handle authentication.

Use cases

Terminology

  • Captcha token: A token used to verify that the registration or login request is made by a human and not a bot.
  • Identity: The unique identifier and profile information of a member.
  • Factor: An authentication factor used in multi-factor authentication processes.
Did this help?

Member Registration and Login: Sample Use Cases and Flows

This article shares some possible use cases your app could support, as well as a sample flow that could support each use case. This can be a helpful jumping-off point as you plan your Headless project's implementation.

Log in an existing member and generate a session token for subsequent authenticated API calls

This flow guides you through logging in an existing member and generating a session token for authenticated API calls using the Wix Authentication API.

To log in an existing member and generate a session token:

  1. Call Login V 2 to log in the existing member.
  2. Using the session token sent in the response, generate and use the member token for subsequent authenticated API calls.
Did this help?