I have an extension that first requests permissions to access Google Drive files. The extension is almost empty except for a popup. I load this js:
chrome.identity.getAuthToken({ 'interactive': true }, function(token) { // Use the token. console.log('Request Token') console.log(token) chrome.identity.removeCachedAuthToken( { 'token': token }, function () {}) console.log('Removed token') });
In my manifest, I have a valid key, oauth2 client id and "scopes":["https://www.googleapis.com/auth/drive"] among other standard keys for chrome extension.
It works correctly, so permission is first requested, and then my access token is registered. However, when I reinstalled the extension (deleted / modified / added), he did not ask for permission and simply wrote the same access token. And I want to ask permission again. How can i do this?
javascript google-chrome-extension google-drive-sdk access-token
Sergey Ivanov
source share