Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

177
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda