Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Step 7 Got 'Not authorized.' from handleAuthResult function #15

Open
nithiroj opened this issue Oct 28, 2022 · 2 comments
Open

Step 7 Got 'Not authorized.' from handleAuthResult function #15

nithiroj opened this issue Oct 28, 2022 · 2 comments

Comments

@nithiroj
Copy link

Got 'Not authorized.' from handleAuthResult function. OAuth consent screen as a testing user.
Screenshot from 2022-10-28 12-24-02

@nithiroj
Copy link
Author

Solution found.

Edit these:

<script type="text/javascript">
gapi.load('client:auth2', authorize); // use auth2
</script>

and

let plugin = 'JS';
function authorize(event) {
    gapi.auth2.authorize({client_id: clientId, scope: scopes, plugin_name: plugin, immediate: false}, handleAuthResult);
    return false;
}

@owidjaja
Copy link

owidjaja commented May 1, 2023

This fix was necessary from step 3 onwards

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

2 participants