I have a react SPA deployed on AWS s3 that uses Auth0 user authentication. The app, including login/logout flow, works fine on my local machine but fails with a timeout when trying to access the callback URL on the s3 deployed app.
I can see from the Auth0 logs that the user authentication succeeds but the app times out when trying to access the callback URL with the user token etc.
I have configured the callback URLs in the Auth0 client settings as below:
https://{my-app-name}.s3-website-ap-southeast-2.amazonaws.com, https://{my-app-name}.s3-website-ap-southeast-2.amazonaws.com/callback
and I have added https://{my-app-name}.s3-website-ap-southeast-2.amazonaws.com/callback as the callbackUrl parameter in auth0-variables.js.
As far as I can tell the s3 bucket is configured correctly and the app works for all non-protected routes.