angular-google-gapi
angular-google-gapi copied to clipboard
Silent relogin after URL reload not working
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.
Will this be addressed in the near future? Otherwise I will fork it and remove it for myself.