Skip to content

Missing from the token response: Wrong Placeholder when changing the email address. #2884

Description

@rajeshjadi-encora

Copilot Usage Confirmation

  • I have tried using GitHub Copilot to resolve this issue.

MSAL Version

1.7.0

Description

When performing the Change Email & Password flow using the configured policy, the returned token response does not include the email claim.

This causes issues because the application expects the updated email address to be available in the token after the flow completes.

The problem occurs only during the Change Email policy execution, while other policies work as expected.
Policy Used:
{
"kEditProfilePolicy": "B2C_1A_ProfileEdit",
"kResetPasswordPolicy": "B2C_1A_PasswordChange",
"kChangeEmailPolicy": "B2C_1A_EmailChange"
}

Error Details

Missing from the token response in email address fields.

MSAL Logs

.

Reproduction Steps

  1. Log in to the application via MSAL SDK triggered browser(SFSafariViewController) window.
  2. Trigger the Change Email flow from app.
  3. Redirect to MSAL SDK triggered browser(SFSafariViewController) window.
  4. Check the Email address field which contains message(Missing from the token response) in email field instead original user email address.

Expected Behavior

The token response should include the updated email claim reflecting the new email address.

User must need to show its email address instead of Missing from the token response in email field.

Regression

No response

Screenshots & Screen Recordings

Image

Additional context

This behaviour is working as expected in android app.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions