0

I have an API http gateway (at say https://example.com) integrated with an API REST gateway which uses a Cognito authorizer. All of this to serve a single-page React application. The behaviour is as expected:

  • I launch the Cognito hosted UI and sign in,
  • It redirects to the url https://example.com/#id_token=123
  • If I use PostMan, I can access that url if I pass that id_token in the Authorization header.

Now my question is: how can I pass the header automatically after signing in so I can visit https://example.com?

I have spent a long time on this and have found many similar posts without an answer:

mrm
  • 98
  • 2
  • 7

0 Answers0