login( )
Logs a registered member in with an email and password.
The login()
function returns a Promise that resolves to a session token
used to log a member in to your site.
The login()
function only works with existing members. To register a new member use
the register()
function.
To complete the login,
the returned session token must be applied using the
applySessionToken()
function (from the wix-members-frontend API) in page code.
Note:
This function replaces the deprecated
wix-users-backend.login()
.
The deprecated function will continue to work, but it will not receive updates.
To keep any existing code compatible with future changes, see the
migration instructions.
Method Declaration
Copy
Method Parameters
emailstringRequired
Login email address.
passwordstringRequired
Member password.
Returns
Return Type:Promise<string>
Was this helpful?
Yes
No