payload icon indicating copy to clipboard operation
payload copied to clipboard

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

Open kendelljoseph opened this issue 3 months ago • 2 comments

Issue: https://github.com/payloadcms/payload/issues/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 avatar Oct 28 '24 18:10 kendelljoseph