Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store web api token itself in localStorage #13

Closed
coni2k opened this issue May 22, 2015 · 1 comment
Closed

Store web api token itself in localStorage #13

coni2k opened this issue May 22, 2015 · 1 comment

Comments

@coni2k
Copy link
Contributor

coni2k commented May 22, 2015

Currently it's only storing 'access_token' property in localStorage, store the whole object, so you can use expires on.

@coni2k coni2k changed the title Asp.Net Identity features Store web api token itself in localStorage Mar 2, 2016
@coni2k
Copy link
Contributor Author

coni2k commented Mar 2, 2016

localStorage only keeps string data. By using angular.fromJson & toJson functions, it was possible to convert 'token' object in localStorage and read it back.

@coni2k coni2k closed this as completed in 50d3b72 Mar 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant