Migrate updateSession to Nextjs Auth0 v4

Our application register a user in the database after authentication by Auth0. And than adds some user details to the session. The was handled in a callback on Page /api/auth

During the migration from Nextjs Auth0 v3 to v4 we moved the code to Page /api/user including the call to updateSession. But the session is no longer updated.

The response header contains: set-cookie’: [ ‘appSession=; Path=/; Max-Age=0’ ]

Am I missing a step here?

Hi @hummel

Welcome to the Auth0 Community!

Did you follow the migration guide available on the NextJS github page here?

Kind Regards,
Nik

Hi @hummel

Since I haven’t heard back from you for a while, I will be marking my previous reply as a solution. You can remove the solution before the topic closes automatically if you still experience issues or you can always post again and reference this post.

Kind Regards,
Nik

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.