I have copied the Next.js Auth0 example and deployed it using this
Next.js Serverless Component.
After deploying to Cloudfront Edge, everything works but logout. The profile page maintains logged in state. I have tried everything I can think of before opening a ticket here...this is now blocking company upgrade to Next.js with Auth0. Please help!
npm run devnpm run deployStaging npm run deployStaging so deployed version has correct redirect URIYou can see a demo here: https://d2bmt8y5gix34p.cloudfront.net
Same problem here. Did you find a workaround @nodabladam ?
@marcoschicote Not yet, no. I found some issues in serverless-next.js caching and reported them and I believe they are fixed in latest version. I will try and retest. You using serverless-next.js and trying the latest 1.6 version?
@nodabladam yes. NextJS 9.0.3 and serverless-next.js 1.6.0.
@marcoschicote I just retested and don't believe the caching issues were fixed yet in 1.6.0 :(
I am not sure the cache settings on default cdn route have anything to do with this though.
@nodabladam I can see the issue on the serverless-next.js component repo was closed (https://github.com/danielcondemarin/serverless-next.js/issues/246), have you found a work around? I'm encountering the same problem.
Running in the same issues... Is there a solution?
"@auth0/nextjs-auth0": "^0.10.0"
"next": "^9.1.4"
"serverless-next.js": "^1.8.0"
Hi, can you please check if this issue still happens in the v1.0.0-beta.0 release? We've completely reworked the session logic.
If so, please open a new issue.
Most helpful comment
@nodabladam I can see the issue on the serverless-next.js component repo was closed (https://github.com/danielcondemarin/serverless-next.js/issues/246), have you found a work around? I'm encountering the same problem.