The Authentication API contains functionality for authenticating members from frontend code. Learn more.
Additional information about this section
Perform actions on an object
- applySessionToken( )
Logs the current member into the site using the given session token.
- loggedIn( )
Indicates whether the site visitor is a logged-in member.
- login( )
Logs a registered member in with an email and password.
- logout( )
Logs the current member out of the site.
- onLogin( )
Sets the function that runs when a member logs in.
- onLogout( )
Sets the function that runs when a member logs out.
- promptForgotPassword( )
Prompts the current site visitor with a password reset modal.
- promptLogin( )
Prompts the current visitor to log in as a site member.
- register( )
Registers a new site member.
- sendSetPasswordEmail( )
Sends a site member an email with a link to set their password.