Create the logout logic and functinality for the system.
In this state we should destroy all the data that are located on local storage and also we need to execute a backend call to destroy the user's session.
This logic will have the following flow:
- User selects to logout from the system
- Frontend navigates the user to logout page
- Here some checks are running
- Make a call to backend to destroy the session
- Destroy the local storage saved data
- Returns on admin's login screen
Create the logout logic and functinality for the system.
In this state we should destroy all the data that are located on local storage and also we need to execute a backend call to destroy the user's session.
This logic will have the following flow: