Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

168
Views
chrome.identity.getAuthToken doesn't call callback after token is revoked in the Google account page

I am developing a Chrome Extension usng manifest V3, and using a line similar to the following to get an AuthToken for accessing some Google APIs.

        chrome.identity.getAuthToken({'interactive': true}, (token,scopes) => {console.log("token is: ", token,scopes);});

The code works fine and shows a dialog enabling me to sign in (or just returns the token if there is one cached). I can then make successful API calls using the token. However if I then go to the Google account page for the authorized user, and revoke the token from there, the next time (and every subsequent time) the call doesn't generate an error (runtime.lastError is undefined) but the callback doesn't get called. I remove the token when and API error occures using chrome.identity.removeCachedAuthToken({ token: accessToken}); but this doesn't help (even though the token shows as being removed in chrome://identity-internals.

Restarting Chrome doesn't work either. The only way I can get the code to work again is by deleting and re-creating the chrome profile in which the extension is installed which obviously isn't a valid solutions for the extension users.

Any help would be appreciated!

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!