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

Change updateUser to updateSession #855

Merged
merged 3 commits into from
Oct 11, 2022
Merged

Change updateUser to updateSession #855

merged 3 commits into from
Oct 11, 2022

Conversation

adamjmcgrath
Copy link
Contributor

Initially I wanted to restrict updates to just the user. That way people are less likely to shoot themselves in the food by overwriting properties the SDK depends on. On reflection I think only allowing to update session.user will be jarring for people:

  • updateUser is not consistent with the hooks (where they can update the whole session)
  • We allowed updating the whole session in v1 so there's probably existing code out there that relies on updating the whole session outside of hooks

@adamjmcgrath adamjmcgrath added the review:small Small review label Oct 10, 2022
@adamjmcgrath adamjmcgrath requested a review from a team as a code owner October 10, 2022 14:41
@vercel
Copy link

vercel bot commented Oct 10, 2022

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

1 Ignored Deployment
Name Status Preview Updated
nextjs-auth0 ⬜️ Ignored (Inspect) Oct 11, 2022 at 10:07AM (UTC)

Widcket
Widcket previously approved these changes Oct 10, 2022
@adamjmcgrath adamjmcgrath merged commit 50cb3bd into vNext Oct 11, 2022
@adamjmcgrath adamjmcgrath deleted the update-session branch October 11, 2022 10:10
@adamjmcgrath adamjmcgrath mentioned this pull request Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants