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

Do not store the ID token by default [SDK-3563] #809

Merged
merged 2 commits into from
Sep 7, 2022

Conversation

Widcket
Copy link
Contributor

@Widcket Widcket commented Sep 7, 2022

⚠️ This PR contains breaking changes

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

📋 Changes

This PR keeps the ID token off the session by default, to avoid overly large session cookies. It is possible to store it anyway by setting either the session.storeIDToken config property or the AUTH0_SESSION_STORE_ID_TOKEN environment variable to true.

🎯 Testing

Besides adding unit tests, the changes were tested manually using the kitchen sink example app.

Before

Screen Shot 2022-09-06 at 23 21 22

After

Screen Shot 2022-09-06 at 23 17 05

@Widcket Widcket added review:small Small review CH: Breaking Change PR contains breaking changes without a major version bump labels Sep 7, 2022
@Widcket Widcket requested a review from a team as a code owner September 7, 2022 02:32
@vercel
Copy link

vercel bot commented Sep 7, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
nextjs-auth0 ⬜️ Ignored (Inspect) Sep 7, 2022 at 7:58AM (UTC)

adamjmcgrath
adamjmcgrath previously approved these changes Sep 7, 2022
# Conflicts:
#	tests/handlers/callback.test.ts
#	tests/session/get-access-token.test.ts
#	tests/session/session.test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CH: Breaking Change PR contains breaking changes without a major version bump review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants