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

107
Visualizações
Getting google UID with google AuthToken?

I am trying to implement Google OAUTh2 in a chrome extension where you cant just use the firebase/auth library and signInWithPopup but I got it working ... except one big problem

I configured the manifest

 "oauth2": {
    "client_id": ...
    "scopes": ["email"]
  },

got the auth token

if (request.message === "get_auth_token") {
    chrome.identity.getAuthToken({ interactive: false }, function (token) {
      fetch(
        `https://www.googleapis.com/oauth2/v3/userinfo?access_token=${token}`
      )
        .then((response) => response.json())
        .then((data) => console.log("data", data));
    });

and received my user data with the name and email etc... but not the uid.

But that is the key i am using in my database for the users data. Any chance to get the uid from within a browser extention?

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