JamesRandall / AngularJS-OAuth2

Package for allowing an AngularJS application to authenticate with an OAuth 2 / Open ID Connect identity provider using the implicit flow.
MIT License
46 stars 42 forks source link

Reintegrate global functions and format code #38

Closed gnihi closed 2 years ago

gnihi commented 8 years ago

First of: thanks for your work james!

I've reintegrated the global functions expired (renamed to isExpired) and getSessionToken into the AccessToken factory and made the tokenStorage an object of the factory as well.

The background is that I'm using the services without the directive and I needed a different token storage.

Further on there were two missing node modules for the unit tests and I let my IDE reformat the code to a consistent code style.