> 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

> **Deprecated.** This method is deprecated. Planned removal date: 2025-01-01.

# Method name: register(email: string, password: string, options: RegistrationOptions)

# Method package: wixMembersFrontend

# Method menu location: wixMembersFrontend --> Authentication --> register

# Method Link: https://dev.wix.com/docs/velo/apis/wix-members-frontend/authentication/register.md

# Method Description:

**Deprecated.**
This method will be deprecated on September 30, 2026. Replace with [register()](https://dev.wix.com/docs/sdk/backend-modules/identity/authentication/register-v2.md).
Registers a new site member.

`register()` returns a Promise that resolves to a `RegistrationResult`
 object when the member is registered or pending registration.

 The specified `password` must be between 4 and 100 ASCII characters.

 See [New Members](https://dev.wix.com/docs/sdk/frontend-modules/members/authentication/new-members.md) to learn about verifying emails and approving members.

 > **Notes:**
 >
 > - The frontend Members APIs aren't fully functional when previewing a site. View a published version of a site to see their complete functionality.
 >
 > - The member data in the resolved Promise only includes custom fields from a site's contacts 
 >   if those [fields are added to a site's members in a dashboard](https://support.wix.com/en/article/site-members-customizing-your-member-profile-fields).
 >
 > - When a new member signs up using an email address
 >   that's already in a site's Contact List,
 >   a notification is displayed
 >   and a confirmation email is sent to the new member.
 >   To register a member without displaying the notification, use
 >   [`register()`](https://dev.wix.com/docs/sdk/backend-modules/identity/authentication/register-v2.md)
 >   (this doesn't suppress the confirmation email).
 >
 > - When a site's member signup settings are set to automatic approval (see [New Members](https://dev.wix.com/docs/sdk/frontend-modules/members/authentication/new-members.md)), 
 >   calling the frontend `register()` in page code is as secure as calling `register()` in backend code, 
 >   unless you are implementing [custom site registration using code](https://dev.wix.com/docs/develop-websites/articles/code-tutorials/wix-members/creating-a-custom-registration-form-with-code.md).
 >   However, when registration is set to manual approval (see [New Members](https://dev.wix.com/docs/sdk/frontend-modules/members/authentication/new-members.md)),
 >   calling `register()` from the backend code allows you to build more secure approval flows
 >   by keeping tokens hidden from the frontend.



# Method Code Examples:

*** Note: do not assume any prop names or enum values other than the ones in the example.

## Register a site member

```javascript
import { authentication } from 'wix-members-frontend';

// ...

/* Sample options value:
 * {
 *   contactInfo: {
 *     firstName: 'Juan',
 *     lastName: 'Doe',
 *     picture: 'https://static.parastorage.com/unpkg-semver/communities-blog-statics/assets/wix-logo.png',
 *     hobby: 'Football'
 *   },
 *   privacyStatus: "PRIVATE"
 * }
 */

authentication.register(email, password, options)
  .then((registrationResult) => {
    const status = registrationResult.status;

    if (status === "PENDING") {
      // When the site is configured for manual approval,
      // status is "PENDING" and approvalToken is returned.
      const approvalToken = registrationResult.approvalToken;
      console.log('Member registered and waiting for approval:', registrationResult);
    } else {
      // When the site is configured for automatic approval,
      // status is "ACTIVE" and the member is approved and logged in.
      // To prevent logging in the member automatically,
      // use the backend function: wix-members-backend.authentication.register()
      console.log('Member registered and logged in:', registrationResult);
    }
  })
  .catch((error) => {
    console.error(error);
  });
```

---