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

224
Vistas
Sign In With Google + People API

I'm trying to create a login button "Sign In With Google" and get additional information about the user (name, email + gender and date of birth) using the People API.

I have done this before with https://apis.google.com/js/api.js. This library provides tools for authorization and requests, but Google stops support and offers to use a new option.

I followed this guide Load the client library + Display the Sign In With Google button.

In the end result (after decoding the JWT token) I get the name and email. To send a request to People API, I need an access_token. Where and how can i get it without server-side scripts?

Can someone tell me how to send a request to People API with JS in this case?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

There's demo javascript code on the People API docs website: https://developers.google.com/people/quickstart/js

It lists the account's contacts, but you can easily modify that to only get the user's details.

about 4 years ago · Juan Pablo Isaza Denunciar

0

I have checked the documentation from the new Google Sign in Library and it seems that the access token is not included in the JWT token that is retrieved, it seems that this has been changed to handle the information gathered from the token response as documented here.

about 4 years ago · Juan Pablo Isaza Denunciar
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