Closed tharoosha closed 1 month ago
do not need to add logout routes in the backend. since I already passed the jwt tokens, what you have to do is clear the jwt token in the local storage and navigate to the admin login page
function logout() { localStorage.removeItem('access_token'); // or remove it from cookies if stored there localStorage.removeItem('refresh_token'); window.location.href = '/login'; // Redirect to login or another page }
Admin logout implemented: tokens cleared and redirected to login.
admin logout routes should be developed and in the frontend admin pannel admin logout button should be displayed