<PackageReference Include="Microsoft.Identity.Client" Version="4.83.3" />

Microsoft.Identity.Client.Http.RedirectUriHelper

public static void Validate(Uri redirectUri, bool usesSystemBrowser = false)

Check common redirect URI problems. Optionally check that the redirect URI is not the OAuth2 standard redirect URI https://login.microsoftonline.com/common/oauth2/nativeclientb when using a system browser, because the browser cannot redirect back to the app.

public static void ValidateIosBrokerRedirectUri(Uri redirectUri, string bundleId, ILoggerAdapter logger)