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

155
Visualizações
How can I create a client side cognito session from an AuthenticationResult?

The AWS object from the aws-amplify package allows a frontend application to start a cognito authentication flow by calling the signIn method. This dispatches some traffic to the cognito servers, and ultimately if successful, returns an AuthenticationResult object, whose values are set in the browser's local storage (or cookies, if configured to do so).

How can the local session be set using an AuthenticationResult object which was acquired elsewhere? (eg through the use of the AdminInitiateAuth method on the backend)

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

If the backend shares origin with the frontend you can have a simple document that places the values in localstorage before redirecting back to your SPA.

Otherwise you are out of luck. OAuth is all about this exact issue: how to grant access to clients in a secure manner. Your SPA is one client, your backend is another.

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