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

100
Visualizações
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 à 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