def get_wsgi_auth(auth: Optional[RawAuth], auth_type: Optional[str]) -> Optional[str]:
    if auth:
        if (auth_type == 'digest'):
            raise ValueError('Digest auth is not supported for WSGI apps')
        return _basic_auth_str(*auth)
    return None
def get_wsgi_auth(auth: Optional[RawAuth], auth_type: Optional[str]) -> Optional[str]:
    if auth:
        if (auth_type == 'digest'):
            raise ValueError('Digest auth is not supported for WSGI apps')
        return _basic_auth_str(*auth)
    return None