token

scitokens.utils.demo.token(payload: dict)[source]

Get a signed token for the given payload.

Parameters:

payload (dict) – a dictionary specifying the claims

Returns:

an encoded token for the payload