jose.jwt
encode(claims, key, header) -> token, err
claims
key
header
token
err
Sign a claims table as a JWT
The header is jose.jws.sign's, with typ set to JWT unless header carries its own. Raises on claims that are not a table.
jose.jws.sign
typ
JWT