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

Silent relogin after URL reload not working #87

@Burtan

Description

@Burtan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions