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
Log into your application and navigate to a page that uses the component from the previous step.
Since the user was already fetched in a server component, the user's sub should immediately be rendered on the page, but notice that it briefly renders "undefined" first.
Additional context
No response
nextjs-auth0 version
4.0.3
Next.js version
14.2.24
Node.js version
22.14.0
The text was updated successfully, but these errors were encountered:
Checklist
Description
The
Auth0Provider
allows for an initial user to be passed, which is used as thefallback
value for the/auth/profile
route:nextjs-auth0/src/client/providers/auth0-provider.tsx
Line 19 in 611c691
The issue is that if a custom profile route is set to something other than
/auth/profile
, then the initial user will not be used.Reproduction
NEXT_PUBLIC_PROFILE_ROUTE
environment variable. (ex:NEXT_PUBLIC_PROFILE_ROUTE=/api/me
.Auth0Provider
:useUser()
hook to retrieve the user and render a field, such as thesub
:Additional context
No response
nextjs-auth0 version
4.0.3
Next.js version
14.2.24
Node.js version
22.14.0
The text was updated successfully, but these errors were encountered: