Blank Page with Custom Azure B2C Hosted Login Page in React App

Drew Stevens 40 Reputation points
2025-03-25T20:50:30.6433333+00:00

Trying to implement Azure B2C with a custom hosted login page, which is also a React app, results in a blank page. A div with an ID of 'API' was created as per Azure documentation. The application is currently running on localhost for testing, and the specified URL has been set on Azure for styling. The main React app uses the login redirect method, which works with the default login page. However, the custom app displays a blank page with the following error in the console:

jQuery.Deferred exception: Cannot read properties of undefined (reading 'attributes') TypeError: Cannot read properties of undefined (reading 'attributes')

Any guidance on resolving this issue would be appreciated.

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.