Storage.put uses expired token #14174
Labels
pending-community-response
Issue is pending a response from the author or community.
question
General question
Storage
Related to Storage components/category
V5
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Storage
Amplify Version
v5
Amplify Categories
storage, auth
Backend
Other
Environment information
Describe the bug
When uploading files to S3 using Storage.put I will receive an error
ExpiredToken: The provided token has expired.
This only happens if I've left my window open for > 1hr. When I first start the app and upload everything works correctly.Expected behavior
Uploads should still work after an hour of inactivity without hard refreshing/restarting the app.
The token should be refreshed (which it looks like is happening from the debug logs) and upload should use the non expired tokens.
Reproduction steps
Code Snippet
Log output
No response
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: