1 min read

Login

Last Updated - Platform 26.0 - SDK 21.0

login

The Login screen allows a user to log into an existing account. The repository, via the Authenticator, handles the authentication flow trading in JWTs.

Login Gate

The login screen can be presented as login gate. There are 3 types of the login screen: default - presents login screen with the login and register buttons and no header login

loginGate - presents login gate with the login and register buttons and header loginGate

continue - presents login gate with the login and register buttons and continue button that allows to enter a feature as a guest user continue

# Login
login
login?is_modal=true
## Forgot Password
forgot-password

All deeplinks can be presented modally using the is_modal query parameter. This is especially a common use-case for the login screen. To present the login gate with different types use type query parameter.

login?type=default
login?type=loginGate
login?type=continue

Settings

Use Settings.Cart.isLoginGateEnabled=true to enable login gate on Cart.\ Use Settings.Cart.loginGateType to set the type of the login gate on Cart.\ Use Settings.Wishlist.isLoginGateEnabled=true to enable login gate on Wishlist and Swipe to Like.\ Use Settings.Wishlist.loginGateType to set the type of the login gate on Wishlist and Swipe to Like.

Login View

The LoginView is a widget that handles the redux part for the Login feature. If you need to add any custom reducers or middleware you should override make functions. LoginView is a slot view and its route is account/login. For the features that can be placed as tabs (Wishlist, Swipe to Like) login gate is a state view (ViewDataState<ViewData>.loginGate). For the user interaction events like a wishlist button tap the login gate is presented modally.

Forgot Password

The Forgot Password screen is not currently part of SDK; instead, we delegate to the website to handle this. Replace forgotPasswordURL in MightyBot to set the forgot password page URL.