Blank Page with Custom Azure B2C Hosted Login Page in React App
Drew Stevens
40
Reputation points
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
3,281 questions
Sign in to answer