You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, when I do what the example suggests in a _app.tsx file, or in any of my Layout files it won't work because these files cannot be asynchronous (Here in the Next.js docs you see no async in any of the layout files or _app.tsx.
I am clueless how I can get this to work the way it used to, so users do not see a 'flash' of empty content until the useUser() hook has retrieved the user.
Reproduction
Get the same from v3 functionality back in v4's in apps with Page Router
Additional context
No response
nextjs-auth0 version
4.0.1
Next.js version
14.2.23
Node.js version
22.11
The text was updated successfully, but these errors were encountered:
Checklist
Description
In v3 I used to have this in my Next.js app with Pages router:
Every page using getServerSideProps was wrapped with withPageAuthRequired, which would populate this a 'user' property in the pageProps.
In v4 this is obviously gone, and in EXAMPLES.md it shows this:
However, when I do what the example suggests in a _app.tsx file, or in any of my Layout files it won't work because these files cannot be asynchronous (Here in the Next.js docs you see no
async
in any of the layout files or _app.tsx.I am clueless how I can get this to work the way it used to, so users do not see a 'flash' of empty content until the useUser() hook has retrieved the user.
Reproduction
Get the same from v3 functionality back in v4's in apps with Page Router
Additional context
No response
nextjs-auth0 version
4.0.1
Next.js version
14.2.23
Node.js version
22.11
The text was updated successfully, but these errors were encountered: