API Reference
token()
Get a signed token for the given payload.
payload (dict) – a dictionary specifying the claims
an encoded token for the payload