jose.jwt.encode

jose.jwt

encode(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.