next-auth
next-auth copied to clipboard
Make `getToken` work on Cloudflare Workers by not eagerly evaluating defaults
☕️ Reasoning
Cloudflare Workers don't define process.env. getToken defaults to process.env in an eager fashion, resulting in errors like "process is not defined". This PR uses ??= to set some params lazily.
🧢 Checklist
- [ ] Documentation
- [ ] Tests
- [x] Ready to be merged
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| auth-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Apr 25, 2023 4:24pm |
1 Ignored Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| next-auth-docs | ⬜️ Ignored (Inspect) | Apr 25, 2023 4:24pm |
@AlexErrant is attempting to deploy a commit to the authjs Team on Vercel.
A member of the Team first needs to authorize it.
This makes a lot of sense. Are you still interested in getting this merged? If so, please check out the merge conflict :pray:
Looks like getToken on main no longer uses process.env