• Infers the base URL from a wellknown endpoint URL. Extracts everything before /oauth2/ in the path.

    Example: https://am.example.com/am/oauth2/alpha/.well-known/openid-configuration Returns: https://am.example.com/am/

    Parameters

    • wellknownUrl: string

    Returns undefined | string