wix-users
The wix-users module contains functionality for working with your site's users from client-side code. Learn more.
Additional information about this section
Store values associated with an object
- currentUser
Gets the current user viewing the site.
Perform actions on an object
- applySessionToken( )
Logs the current user into the site using the given session token.
- emailUser( )
Sends a Triggered Email to the currently logged-in site member.
- getCurrentConsentPolicy( )
Gets the user's consent policy regarding allowed cookies and third-party data transfer, such as for GDPR or CCPA purposes.
- login( )
Logs a user in based on email and password.
- logout( )
Logs the current user out of the site.
- onConsentPolicyChanged( )
Sets the function that runs when a user's consent policy was changed using setConsentPolicy() or if it was reset using resetConsentPolicy().
- onLogin( )
Sets the function that runs when a user logs in.
- promptForgotPassword( )
Prompts the current site visitor with a password reset.
- promptLogin( )
Prompts the current site visitor to log in as a site member.
- register( )
Registers a new site member.
- resetConsentPolicy( )
Removes the current policy from the user's browser and resets the user's consent policy to the default policy for the site.
- setConsentPolicy( )
Sets the current user's consent policy regarding allowed cookies and data transfer to third parties, such as for GDPR or CCPA purposes.
- User
A site user.