-
Notifications
You must be signed in to change notification settings - Fork 187
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
added token storing in $localStorage #109
base: master
Are you sure you want to change the base?
Conversation
cookie are still used, it adds $localStorage support for token. it's usefull for hybrid mobile development.
added token removal from localStorage as well. added ngStorage to karma conf.
have to disable unhandled rejections of promises while testing.
👍 Can we see this get merged? |
The support for @MikhailRoot if you want to implement what was proposed there, I'll gladly merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documentation shall also be changed to import the ngStorage script.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The use of localStorage
should be an option with fallback if not supported.
Is there an update on this ? I would need this feature to be able to use this package on a cordova & electron project. |
As it's unpossible to have cookies in cordova that's why localStorage used. Cookies are still used, it adds $localStorage support for token. So you can use methods like OAuth.isAuthenticated() same as with cookies but with localStorage transparently.