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

94
Vistas
Sign in strategy with OAuth ( Google / Apple sign In )

in one of my projects I have implemented a login / registration with the OAuth from Google and Apple.

Now when I request a login I get back something like the following tokens:

  • AccessToken
  • ID-Token
  • RefreshToken

My strategy is to send the ID token to my own backend to check if it is valid. I create the user in my own database with new internal credentials. I don't need and don't store the other tokens at all. The users are automatically logged in using the new credentials.

The login of the client is now always done automatically by the own credentials.

Does this strategy bring any disadvantages?
Should I still save the other tokens?
If so for what benefit?

If the user logs out, I simply repeat the process afterwards and recognize from the ID sent along in the ID token that he is already registered.

Thank you guys for your opinion and help.

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