Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

105
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda