chrome.identity.getAuthToken not working

前端 未结 4 1677
野性不改
野性不改 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:20

    The accepted answer is incorrect. You can upload it to the webstore, publish it, then install it from the webstore. After installing, find the installed extension app dir (~/Library/Application\ Support/Google/Chrome/Default/Extensions/ on a mac), and copy the key key from the installed manifest.json into your source code manifest.json. After adding the key field to your manifest.json, your app id will not change during local development.

    Source: https://developer.chrome.com/apps/app_identity#copy_key

提交回复
热议问题