Socket
Socket
Sign inDemoInstall

angular-google-plus

Package Overview
Dependencies
0
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    angular-google-plus

A angular module which handles the login with the Google+ API


Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Install size
29.5 kB
Created
Weekly downloads
 

Changelog

Source

0.1.2

  • Bower: remove minifed version from main value
  • Dependencies: remove connect dependency (Gruntfile)
  • API: Add the getUser method and remove it from login (#1, #4)
Breaking Changes

The API for login has been changed (#4):

Before:

GooglePlus.login().then(function (user) {
    console.log(user);
}, function (err) {
    console.log(err);
});

After:

GooglePlus.login().then(function (authResult) {
    console.log(authResult);

    GooglePlus.getUser().then(function (user) {
        console.log(user);
    });
}, function (err) {
    console.log(err);
});

Readme

Source

angular-google-plus

Build Status npm version Bower version

A angular module which handles the login with the Google+ API

Demo

Try this demo. Remind that there is no API Key and Client ID inserted

Install

Install the angular module with bower.

$ bower install angular-google-plus
Usage
var app = angular.module('app', ['googleplus']);

app.config(['GooglePlusProvider', function(GooglePlusProvider) {
     GooglePlusProvider.init({
        clientId: 'YOUR_CLIENT_ID',
        apiKey: 'YOUR_API_KEY'
     });
}]);

app.controller('AuthCtrl', ['$scope', 'GooglePlus', function ($scope, GooglePlus) {
    $scope.login = function () {
        GooglePlus.login().then(function (authResult) {
            console.log(authResult);

            GooglePlus.getUser().then(function (user) {
                console.log(user);
            });
        }, function (err) {
            console.log(err);
        });
    };
}]);
Credits

Keywords

FAQs

Last updated on 27 Aug 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc