payload
payload copied to clipboard
chore(plugin-cloud): refresh session on ExpiredToken error code
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.