angular-google-gapi icon indicating copy to clipboard operation
angular-google-gapi copied to clipboard

Silent relogin after URL reload not working

Open Burtan opened this issue 8 years ago • 1 comments

Hi, the silent relogin with checkAuth() does not work on first start of the app (like reloading the URL). This has once worked and I've found the corresponding code part.

                    var config = {client_id: CLIENT_ID, scope: SCOPE, immediate: false, authuser: -1, response_type: RESPONSE_TYPE};
                    if(mode) {
                        config.user_id = GData.getUserId();
                        config.immediate = true;
                    }
                    if(DOMAIN != undefined)
                        config.hd = DOMAIN;
                    $window.gapi.auth.authorize(config, authorizeCallback);

In earlier versions only client_id, scope and immediate were added to the config object. The new parameters prevent the silent relogin.

Burtan avatar Feb 13 '17 17:02 Burtan

Will this be addressed in the near future? Otherwise I will fork it and remove it for myself.

Burtan avatar May 03 '17 18:05 Burtan