When the user is logged in a token is stored in the localstorage but there are no means to remove the token from localstorage.
Thus I will provide a logout button in the navbar which when on being clicked removes the token from the localstorage and thus logs out the user.
When the user is logged in a token is stored in the localstorage but there are no means to remove the token from localstorage. Thus I will provide a logout button in the navbar which when on being clicked removes the token from the localstorage and thus logs out the user.