function parseAuthUrl(url) {
    const currentUrl = url || null;

    // query url not exact match when includes fragments, so must start with extension url
    if (currentUrl && `${currentUrl}`.startsWith(getPopupUrl())) {
        const encodedUrl = new URL(currentUrl).searchParams.get(AUTH_URL_QUERY_PARAM);
        if (encodedUrl) {
            return decodeURIComponent(encodedUrl);
        }
    }
    return null;
}
Returns decoded url param for "authUrl" if present
@since 3.10.0
@param string url    string to parse and compare against extension popup url
@returns string | null