Skip to content

vardius/angular-oauth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-voauth2

Angular oauth2 provider

Installation

Install with bower:

$ bower install angular-voauth2 --save

Install with npm:

$ npm install angular-voauth2

Load the angular-voauth2 module in your app.

angular.module('app', ['vOAuth2']);

Catch oauth errors

Remember to remove token

angular.module('myApp', ['vOAuth2'])
  .run(run);
  
  run.$inject = ['$rootScope', '$state'];
  
  function run($rootScope, $state) {
      $rootScope.$on('voauth:error', function () {
          $state.go('login', {}, {reload: true});
      });
  }

About

Angular oauth2 provider

Resources

License

Stars

Watchers

Forks

Packages

No packages published