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.

  • Parameters

    • props: {}

    Returns ReactNode | Promise<ReactNode>

    The rendered MicrosoftCallback component.