Hey folks,
Here is my current code to access the Google Drive files in the popup ( it works ) :
// manifest.json
// popup.js
chrome.identity.getAuthToken({ interactive: true }, function (token) {})
I added a button to switch accounts and used this same method to pick a Google account when the button is clicked:
chrome.identity.getAuthToken({ interactive: true }, function (token) {})
But, as I am already logged in, it does not work ( the Google account picker does not pop up and the token in the callback is the previously logged-in token ).
Is there any way to switch accounts with Google Drive access?
I really appreciate any help you can provide.