MicrosoftCallback component.
This component handles the OAuth callback from Microsoft Entra ID. It extracts the authorization code from the URL, exchanges it for a token, and then redirects the user to the appropriate page based on their role.
The rendered MicrosoftCallback component.
MicrosoftCallback component.
This component handles the OAuth callback from Microsoft Entra ID. It extracts the authorization code from the URL, exchanges it for a token, and then redirects the user to the appropriate page based on their role.