login( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Logs in a registered member with an email and password.

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 in the wix-members-frontend API.

Method Declaration
Copy
Method Parameters
emailstringRequired

Login email address.


passwordstringRequired

Member password.


optionsLoginOptions

Options for logging in a member.

Returns
Return Type:Promise<LoginResponse>
Did this help?