Skip to content

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