(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.
        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 .
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.
        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 = verify_token(
        id_token,
        request,
        audience=audience,
        certs_url=_GOOGLE_OAUTH2_CERTS_URL,
        clock_skew_in_seconds=clock_skew_in_seconds,
    )

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

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