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
{{ message }}
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
Since AngularJS is webframework designed for SPAs, when using REST APIs, we shouldn't use cookies to store state of app. Instead, app should manage session by some kind of accessToken.
And so I did, I have REST API that verifies every request with accessToken app sends from browser. This token is transported in HTTP headers. I save token in localStorage, which is available from IE8+ (perfectly fine for my app).
In test some scenarios (redirecting of unpriviledged user to login screen) I need to clear my accessToken from localStorage. How can I do that?