Replies: 1 comment
-
See updated post |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have an Auth0 action that initializes some user metadata before each login. For the sake of this question, let's say I'm setting a custom claim,
https://example.com/foo = bar
.How do I retrieve this value in next-auth? The token contains the standard, name, email, picture, sub, accessToken, but not the namespaced custom claim. Thank you for your help.
PS: I can use Auth0 management API to get the info. It's the extra call that I'm trying to avoid.
PPS: It's working for me now. Make sure you clean up nextjs cache (
rf -rf .next
). To make Typescript happy with new field(s) you're adding totoken
andsession
, see https://next-auth.js.org/getting-started/typescript#module-augmentationAuth0 Post login action
[...nextauth].ts
Beta Was this translation helpful? Give feedback.
All reactions