Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Silent relogin after URL reload not working #87

Open
Burtan opened this issue Feb 13, 2017 · 1 comment
Open

Silent relogin after URL reload not working #87

Burtan opened this issue Feb 13, 2017 · 1 comment

Comments

@Burtan
Copy link

Burtan commented Feb 13, 2017

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
Copy link
Author

Burtan commented May 3, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant