0

I have integrated the AWS amplify SDK in my Angular web app. Using the signIn method, I am able to receive the ID, refresh and Access token from Cognito.

However, the ID token gets expired after 60 mins, and the subsequent APIG calls using the token start failing. Is there a way to auto-configure the SDK, so that the SDK auto-refreshes the ID token before it expires?

This AWS link here says that the mobile SDKs do it automatically but says nothing for JS SDK. Any ideas

Saurabh Tiwari
  • 4,632
  • 9
  • 42
  • 82
  • Does this answer your question? [How to automatically refresh Cognito Token in a page](https://stackoverflow.com/questions/55093903/how-to-automatically-refresh-cognito-token-in-a-page) – Sampath Dilhan Dec 22 '22 at 12:35

0 Answers0