angular-voauth2

0.1.16 • Public • Published

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});
      });
  }

Dependents (0)

Package Sidebar

Install

npm i angular-voauth2

Weekly Downloads

16

Version

0.1.16

License

none

Last publish

Collaborators

  • vardius