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 wix-members-frontend) in page code.

Method Declaration
Copy
Method Parameters
emailstringRequired

Login email address.


passwordstringRequired

Member password.

Returns
Return Type:Promise<string>
Was this helpful?
Yes
No