angular-googleapi icon indicating copy to clipboard operation
angular-googleapi copied to clipboard

Its not showing the list of already logged-in accounts while login.

Open anil1712 opened this issue 11 years ago • 1 comments

I have two issue on the same:

  1. Whenever I clicked in login button it opened a popup and close it after some time(2-3 sec. approx), but I have already logged-in with 3 different google account but its not giving me options to choose in which account I want to login.
  2. I don't want user google plus detail after logged in, I just want accessToken as a response after login success.

Can you please add this features or give me some other links or resources which can fulfill my requirements.

anil1712 avatar Aug 26 '14 06:08 anil1712

    $scope.authenticated = false;
    $scope.calendarsLoaded = false;

    function checkAuth() {
        setTimeout(function () {
            gapi.auth === undefined ? checkAuth() : googleLogin.checkAuth();
        }, 20);
    }

    // check if the user is logged in when the page loads
    checkAuth();

    // have a login button call this
    $scope.login = function () {
        googleLogin.login();
    };

    $scope.loadCalendars = function () {
        googleCalendar.listCalendars().then(function (calendars) {
            $scope.calendarsLoaded = true;
            $scope.calendars = calendars;
        });
    };

patrioticcow avatar Sep 12 '14 04:09 patrioticcow