eligibility_api/server.py
def create_response_payload(token_payload: dict, issuer: str) -> dict:
    """Crafts a response payload. Does not include the eligibility or error fields."""
    # craft the response payload using parsed request token
    resp_payload = dict(
        jti=token_payload["jti"],
        iss=issuer,
        iat=int(datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).timestamp()),
    )

    return resp_payload
Crafts a response payload. Does not include the eligibility or error fields.
Crafts a response payload. Does not include the eligibility or error fields.
Crafts a response payload . Does not include the eligibility or error fields .
def create_response_payload(token_payload: dict, issuer: str) -> dict:
    resp_payload = dict(
        jti=token_payload["jti"],
        iss=issuer,
        iat=int(datetime.datetime.utcnow().replace(tzinfo=datetime.timezone.utc).timestamp()),
    )
    return resp_payload
def create_response_payload ( token_payload : dict , issuer : str ) -> dict : resp_payload = dict ( jti = token_payload [ "jti" ] , iss = issuer , iat = int ( datetime . datetime . utcnow ( ) . replace ( tzinfo = datetime . timezone . utc ) . timestamp ( ) ) , ) return resp_payload
Crafts a response payload.
Crafts a response payload .
"""Crafts a response payload. Does not include the eligibility or error fields.""" # craft the response payload using parsed request token
token_payload
dict
issuer
str