oauthjs / angular-oauth2

AngularJS OAuth2
MIT License
595 stars 187 forks source link

added token storing in $localStorage #109

Open MikhailRoot opened 7 years ago

MikhailRoot commented 7 years ago

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.

solidspark commented 7 years ago

👍

Can we see this get merged?

ruipenso commented 7 years ago

The support for localStorage was discussed on #97.

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

darkurse commented 6 years ago

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 ?