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

added token storing in $localStorage #109

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

MikhailRoot
Copy link

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.

cookie are still used, it adds $localStorage support for token. it's
usefull for hybrid mobile development.
@MikhailRoot MikhailRoot changed the title added token storing tokens in $localStorage added token storing in $localStorage Dec 12, 2016
added token removal from localStorage as well. added ngStorage to karma
conf.
have to disable unhandled rejections of promises while testing.
@solidspark
Copy link

👍

Can we see this get merged?

@ruipenso
Copy link
Member

The support for localStorage was discussed on #97.

@MikhailRoot if you want to implement what was proposed there, I'll gladly merge it.

Copy link

@piwel piwel left a 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.

Copy link
Member

@ruipenso ruipenso left a 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.

@darkurse
Copy link

Is there an update on this ? I would need this feature to be able to use this package on a cordova & electron project.
How can we unblock this quickly ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants