Get user updated locale (inside NextJS)

Hi, I need to get the updated user local inside NextJS. Looks like the info provided by the SDK method and the /api/auth/me response is only updated after a token refresh. Is there a way to force it to be refreshed or we should implement a call to https://auth0.com/docs/api/authentication#get-user-info to get the updated value?

Thanks for all :slight_smile:
Pol

Hi @pol.maresma

Welcome back to the the Auth0 Community!

As you have mentioned in the post, the updated information will be visible only once a new token is provided. In this case, you could call the user info endpoint, you could implement silent authentication or force re-authentication.

If you have any other questions, feel free to let me know!

Kind Regards,
Nik

1 Like