Skip to content

Fix crash in azure-ad-b2c provider (v4)#13217

Closed
jfreitas-dev wants to merge 1 commit intonextauthjs:v4from
jfreitas-dev:fix/azure-ad-b2c-email
Closed

Fix crash in azure-ad-b2c provider (v4)#13217
jfreitas-dev wants to merge 1 commit intonextauthjs:v4from
jfreitas-dev:fix/azure-ad-b2c-email

Conversation

@jfreitas-dev
Copy link
Copy Markdown

☕️ 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.
@vercel
Copy link
Copy Markdown

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

@vercel
Copy link
Copy Markdown

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.

@github-actions github-actions Bot added providers legacy Refers to `next-auth` v4. Minimal maintenance. labels Sep 10, 2025
@jfreitas-dev jfreitas-dev closed this by deleting the head repository Apr 9, 2026
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