Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(plugin-cloud): refresh session on ExpiredToken error code #8904

Open
wants to merge 4 commits into
base: beta
Choose a base branch
from

Conversation

kendelljoseph
Copy link
Contributor

Issue: #8404

This code will refresh the session token upon receiving an ExpiredToken error when storageClient.getObject() receives that error.

  • The Error Code detected is determined by the error reported in the issue, and is an actual code from AWS documentation for Error Responses.

  • If the request fails again, the error is thrown.

@kendelljoseph kendelljoseph self-assigned this Oct 28, 2024
@kendelljoseph kendelljoseph changed the title chore(payload-cloud): refresh session on ExpiredToken error code chore(plugin-cloud): refresh session on ExpiredToken error code Oct 28, 2024
@denolfe
Copy link
Member

denolfe commented Oct 29, 2024

The code is looking good. I've just triggered a canary release 3.0.0-canary.ab70b75. Please run this on a deployed cloud project and verify base functionality is still working.

@kendelljoseph
Copy link
Contributor Author

Verified payloadPluginCloud() works with cognito credentials in a local env and in Payload Cloud.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants