Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

143
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!