pingdotgg / uploadthing

File uploads for modern web devs
https://uploadthing.com
MIT License
3.7k stars 261 forks source link

feat(nextauth): avoid db roundtrip on every `auth()` call #854

Closed p6l-richard closed 3 weeks ago

p6l-richard commented 3 weeks ago

fetch in jwt callback instead of session callback

changeset-bot[bot] commented 3 weeks ago

⚠️ No Changeset found

Latest commit: e21a5d9125056018829edf4b7b2cf8dbc07ad9d5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

[Click here if you're a maintainer who wants to add a changeset to this PR](https://github.com/p6l-richard/uploadthing/new/next-auth-improvement?filename=.changeset/rich-parrots-grab.md&value=---%0A%22%40examples%2Fprofile-picture%22%3A%20patch%0A---%0A%0Afeat(nextauth)%3A%20avoid%20db%20roundtrip%20on%20every%20%60auth()%60%20call%0A)

vercel[bot] commented 3 weeks ago

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

Name Status Preview Comments Updated (UTC)
docs-uploadthing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 12, 2024 8:30am