angularjs-oauth / oauth-ng

AngularJS directive for the OAuth 2.0 Implicit Flow
http://angularjs-oauth.github.io/oauth-ng/
MIT License
363 stars 156 forks source link

Fixes error thrown by cancelExpiresAtEvent #125

Closed mike-tempest closed 8 years ago

mike-tempest commented 8 years ago

cancelExpiresAtEvent function uses $timeout but it is not injected into the factory.

This causes a blocking javascript error to be thrown when AccessToken.setTokenFromString is called.

m00s commented 8 years ago

Dupe of #124