Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Ability to manipulate localStorage, sessionStorage #188

@srigi

Description

@srigi

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions