Next js auth0 unabled to access Auth0 Management API using access token to fetch user data

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:

This is using the Authentication API’s /userinfo endpoint / ID Tokens behind the scenes:

I hope that helps!

1 Like