angular-google-oauth2
A lightweight library to perform client side authentication with Google OAuth2.
Installation
npm install angular-google-auth2 --save
Include this script in your index.html file before your application bundle
Configure your application
var app = angular;app
Usage
Directive
Service
gapiAuth2
This is the simplest wrapper of Google library. For more information look at Client reference
There are only two methods:
- logout()
Returns promise
gapiAuth2
- getAuthInstance()
Gives access to the native methods. Returns promise
gapiAuth2
Events
google:oauth2:signed-in
$rootScope
google:oauth2:profile
$rootScope
Contribution
Feel free to extend functionality of this library if you need.