AngularJS directive working with the OAuth2 Implicit Flow