> 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`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: authentication.register(email: string, password: string, options: RegistrationOptions) # Method Link: https://dev.wix.com/docs/sdk/host-modules/site/authentication/register.md # Method Description: Registers a new site member. After registration, the member's status is either `PENDING` (which requires email verification or admin approval) or `ACTIVE` (member is immediately logged in). The status depends on your [site's member signup settings](https://support.wix.com/en/article/site-members-managing-signup-login-and-security-settings-for-your-site-members). # Method Permissions: # Method Permissions Scopes IDs: undefined # Method Code Examples: ## Register a new member with email and password ```javascript ```typescript import { register } from '@wix/authentication'; try { const result = await register('user@example.com', 'securePassword123'); if (result.status === 'ACTIVE') { console.log('Member registered and logged in'); } else if (result.status === 'PENDING') { console.log('Member registered, awaiting approval or email verification'); } } catch (error) { console.error('Registration failed:', error); } ``` ``` ## Register a new member with additional contact information ```javascript ```typescript import { register } from '@wix/authentication'; const options = { contactInfo: { firstName: 'John', lastName: 'Doe', picture: 'https://example.com/photo.jpg', emails: ['john.doe@example.com'], phones: ['+1234567890'], language: 'en', customFields: { company: 'Acme Inc', }, }, privacyStatus: 'PUBLIC', }; const result = await register('john.doe@example.com', 'securePassword123', options); console.log('Registration status:', result.status); ``` ```