Hi @Tomodo531 , welcome to the community!
If this is to populate the currently logged in user’s profile page, I would recommend instead using the SDK’s useUser()
hook:
- Auth0 Next.js SDK Quickstarts: Login
- https://auth0.github.io/nextjs-auth0/modules/frontend_use_user.html
This is using the Authentication API’s /userinfo
endpoint / ID Tokens behind the scenes:
I hope that helps!