(
    id_token, request, audience=None, clock_skew_in_seconds=0
)
return idinfo
Verifies an ID Token issued by Google's OAuth 2.0 authorization server.

    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. This is
            typically your application's OAuth 2.0 client ID. If None then the
            audience is not verified.
        clock_skew_in_seconds (int): The clock skew used for `iat` and `exp`
            validation.

    Returns:
        Mapping[str, Any]: The decoded token.

    Raises:
        exceptions.GoogleAuthError: If the issuer is invalid.
Verifies an ID Token issued by Google's OAuth 2.0 authorization server.
Verifies an ID Token issued by Google s OAuth 2 . 0 authorization server .
async def verify_oauth2_token(
    id_token, request, audience=None, clock_skew_in_seconds=0
):
    """Verifies an ID Token issued by Google's OAuth 2.0 authorization server.

    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. This is
            typically your application's OAuth 2.0 client ID. If None then the
            audience is not verified.
        clock_skew_in_seconds (int): The clock skew used for `iat` and `exp`
            validation.

    Returns:
        Mapping[str, Any]: The decoded token.

    Raises:
        exceptions.GoogleAuthError: If the issuer is invalid.
    """
    idinfo = await verify_token(
        id_token,
        request,
        audience=audience,
        certs_url=sync_id_token._GOOGLE_OAUTH2_CERTS_URL,
        clock_skew_in_seconds=clock_skew_in_seconds,
    )

    if idinfo["iss"] not in sync_id_token._GOOGLE_ISSUERS:
        raise exceptions.GoogleAuthError(
            "Wrong issuer. 'iss' should be one of the following: {}".format(
                sync_id_token._GOOGLE_ISSUERS
            )
        )

    return idinfo
async def verify_oauth2_token ( id_token , request , audience = None , clock_skew_in_seconds = 0 ) : idinfo = await verify_token ( id_token , request , audience = audience , certs_url = sync_id_token . _GOOGLE_OAUTH2_CERTS_URL , clock_skew_in_seconds = clock_skew_in_seconds , ) if idinfo [ "iss" ] not in sync_id_token . _GOOGLE_ISSUERS : raise exceptions . GoogleAuthError ( "Wrong issuer. 'iss' should be one of the following: {}" . format ( sync_id_token . _GOOGLE_ISSUERS ) ) return idinfo