chrome.identity.getAuthToken not working

前端 未结 4 1679
野性不改
野性不改 2021-02-01 23:33

I am working with Chrome Identity API, to provide users with a Google Authentication on my Chrome Extension.

I followed the official tutorial of Google : link Chrome Id

4条回答
  •  别那么骄傲
    2021-02-02 00:16

    For other user, who might face the problem that chrome.identify.getauthtoken is not firing or you log in and nothing happens.

    Check your manifest and reduce it to the bare minimum. For example the "oauth2": { "client.id": "alongstring" , "scopes": ["bla","openid", "bla"]}. Having openid in the array, the callback simply did not fire, no alert, no nothing.

    Having openid inside my scopes inside oauth2 blocked in someway the callback from being fired.

提交回复
热议问题