You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Upon successful login, you will receive tokens that need to be stored in the application's memory or session storage.
After login, redirect to the home page.
In case of unsuccessful login, display an error to the user.
When navigating to the cart, check if the user is logged in by sending a request to the endpoint: https://ma-backend-api.mocintra.com/api/v1/auth/verify. This endpoint requires the AccessToken in the Authorization header in the format 'Bearer accessToken'.
If the user is not logged in or the token is invalid, redirect to the login page. An unauthenticated user should not be able to add items to the cart and should be redirected to the login form.
The login and logout buttons (for storing and deleting tokens) should function correctly.
Additional Task (Optional):
Write custom validation for each field. Use a smart form or a library at your discretion.
Task: Implement a Login Form
Objective
'Bearer accessToken'.
Additional Task (Optional):
Useful Links
Users
The text was updated successfully, but these errors were encountered: