-
Notifications
You must be signed in to change notification settings - Fork 397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't get ididToken on v4 version #1840
Comments
Hi there! In v4 we do not store the ID token in the session as it's meant to be a snapshot of the user claims. We validate the token, decode it, and make the claims available on the The
I'm not sure I fully understand what you mean here but if you need to call an external API, we recommend using the access token and specifying and |
@guabu Yeah, Third Party Service (Tokeny.com) requres ID Token for creating new account. (NOT access token). |
|
@guabu Isn't there a better solution to get IdToken? |
Hey @psycpvv, we will explore passing the ID token as a parameter to the For the time being, your approach of calling the token endpoint is completely valid if you need to get a fresh token set with the ID token. |
In the latest release |
Checklist
Description
In our project, we have to get idToken for token trading.
This is v3 code. As you can see, I could get idToken from
session
object.But idToken doesn't exist in the
session
object of v4.Already
openid
is added on scope.Help me pls.
Reproduction
I think, it's enough to explain.
Additional context
No response
nextjs-auth0 version
4.0.0-beta.9
Next.js version
15.0.4
Node.js version
v22.11.0
The text was updated successfully, but these errors were encountered: