> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction (Authentication)

## Article Link: https://dev.wix.com/docs/sdk/host-modules/site/authentication/introduction.md

## Article Content:

# About the Authentication API

The Authentication API allows you to manage site member authentication. 

With the Authentication API, you can:

- [Register](https://dev.wix.com/docs/sdk/host-modules/site/authentication/register.md) new members. 
- Log members [in](https://dev.wix.com/docs/sdk/host-modules/site/authentication/login.md) and [out](https://dev.wix.com/docs/sdk/host-modules/site/authentication/logout.md). 
- [Check](https://dev.wix.com/docs/sdk/host-modules/site/authentication/logged-in.md) login status. 
- [Handle](https://dev.wix.com/docs/sdk/host-modules/site/authentication/apply-session-token.md) session tokens from external identity providers. 

## Before you begin

Before you start writing your code, keep in mind the following:

- The [Wix Members Area](https://www.wix.com/app-market/web-solution/members-area) must be installed on the site. For apps, set [Wix Members Area](https://www.wix.com/app-market/web-solution/members-area) as a [required dependency](https://dev.wix.com/docs/build-apps/launch-your-app/market-listing/add-your-app-audience-info.md#about-required-wix-products) in your app settings so your app can't be installed without it.
- A Wix user has to configure [site's member signup settings](https://support.wix.com/en/article/site-members-managing-signup-login-and-security-settings-for-your-site-members) to control whether new members require email verification or admin approval.
- For self-managed apps, use [site.host()](https://dev.wix.com/docs/sdk/host-modules/site/introduction.md#self-hosted-apps) to authenticate your Wix Client with an access token.

## Terminology

- **Site member**: A registered user with an account on the site. Members can log in to access member-only content and features.