This app was created and built with create-react-app
npm install;
npm run start;
Once the id token from Cognito times out Amplify does not auto refresh the token in order to grab new access keys. Prior to 0.1.36 amplify just used the old access keys now the library realizes the keys are invalid and tries to grab new ones. When it does this it presents the old id token to Cognito and cognito just returns an error cause the token is expired
- Login
- Let app sit for 1 hour (till the tokens expire)
- Click on button to make a request for API --> This will return an error
- Refresh page
- App re-authenticates with Cognito and grabs new tokens and now can make requests from API