(
    id_token,
    request,
    audience=None,
    certs_url=sync_id_token._GOOGLE_OAUTH2_CERTS_URL,
    clock_skew_in_seconds=0,
)
return jwt.decode(
        id_token,
        certs=certs,
        audience=audience,
        clock_skew_in_seconds=clock_skew_in_seconds,
    )
Verifies an ID token and returns the decoded token.

    Args:
        id_token (Union[str, bytes]): The encoded token.
        request (google.auth.transport.Request): The object used to make
            HTTP requests. This must be an aiohttp request.
        audience (str): The audience that this token is intended for. If None
            then the audience is not verified.
        certs_url (str): The URL that specifies the certificates to use to
            verify the token. This URL should return JSON in the format of
            ``{'key id': 'x509 certificate'}``.
        clock_skew_in_seconds (int): The clock skew used for `iat` and `exp`
            validation.

    Returns:
        Mapping[str, Any]: The decoded token.
Verifies an ID token and returns the decoded token.
Verifies an ID token and returns the decoded token .
async def verify_token(
    id_token,
    request,
    audience=None,
    certs_url=sync_id_token._GOOGLE_OAUTH2_CERTS_URL,
    clock_skew_in_seconds=0,
):
    """Verifies an ID token and returns the decoded token.

    Args:
        id_token (Union[str, bytes]): The encoded token.
        request (google.auth.transport.Request): The object used to make
            HTTP requests. This must be an aiohttp request.
        audience (str): The audience that this token is intended for. If None
            then the audience is not verified.
        certs_url (str): The URL that specifies the certificates to use to
            verify the token. This URL should return JSON in the format of
            ``{'key id': 'x509 certificate'}``.
        clock_skew_in_seconds (int): The clock skew used for `iat` and `exp`
            validation.

    Returns:
        Mapping[str, Any]: The decoded token.
    """
    certs = await _fetch_certs(request, certs_url)

    return jwt.decode(
        id_token,
        certs=certs,
        audience=audience,
        clock_skew_in_seconds=clock_skew_in_seconds,
    )
async def verify_token ( id_token , request , audience = None , certs_url = sync_id_token . _GOOGLE_OAUTH2_CERTS_URL , clock_skew_in_seconds = 0 , ) : certs = await _fetch_certs ( request , certs_url ) return jwt . decode ( id_token , certs = certs , audience = audience , clock_skew_in_seconds = clock_skew_in_seconds , )