Skip to content
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

Add idToken to TokenSet in SessionData #1978

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tusharpandey13
Copy link
Contributor

@tusharpandey13 tusharpandey13 commented Mar 19, 2025

📋 Changes

Co-authored-by: kenkoooo [email protected]
Added the field idToken in TokenSet type of SessionData allowing for easy access.

📎 References

🎯 Testing

PASSING

Test Files  9 passed (9)
      Tests  143 passed (143)
   Start at  15:39:48
   Duration  611ms (transform 351ms, setup 0ms, collect 969ms, tests 188ms, environment 1ms, prepare 414ms)

use the getSession() method to access tokenSet:

const session = await auth0.getSession();
const idToken = session.tokenSet.idToken;

@tusharpandey13 tusharpandey13 requested a review from a team as a code owner March 19, 2025 10:07
@tusharpandey13 tusharpandey13 changed the title feat: add idToken support in AuthClient Add idToken to TokenSet in SessionData Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants