codenip-community / todo-list-202401

Apache License 2.0
0 stars 1 forks source link

Frontend login and logout #13

Open moein opened 8 months ago

moein commented 8 months ago

Requires: #10

When user lands on the application they should see a login button. When user clicks on the login button:

  1. Call Login API endpoint
  2. Store the returned token in the browser
  3. Change login button to logout

When clicked on the logout button

  1. Call Logout API endpoint
  2. Remove the stored token
  3. Change logout button to login