Skip to content

Conversation

jfreitas-dev
Copy link

☕️ Reasoning
Not all b2c-setups return a list of emails for a profile. This fixes the resulting crash by using defensive access when reading/setting the profile email address field.

This is a copy of a merged PR from 2 years ago that is in the main branch but never made it to the v4 branch.
#8616

🧢 Checklist
Documentation
Tests
Ready to be merged
🎫 Affected issues
None found.

📌 Resources
Security guidelines
Contributing guidelines
Code of conduct
Contributing to Open Source

Not all b2c-setups return a list of emails for a profile. This fixes the resulting crash by using defensive access when reading/setting the profile email address field.
Copy link

vercel bot commented Sep 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
auth-docs Error Error Sep 10, 2025 7:39pm
next-auth-docs Error Error Sep 10, 2025 7:39pm

Copy link

vercel bot commented Sep 10, 2025

@jfreitas-dev is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
legacy Refers to `next-auth` v4. Minimal maintenance. providers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant