Token

represents a token

Constructors

this
this(JWTAlgorithm alg, string typ)
Undocumented in source.

Members

Functions

encode
string encode(string secret)

encodes the token

encode
string encode()

overload of the encode(string secret) function to simplify encoding of token without algorithm none

signature
string signature(string secret)

used to get the signature of the token Parmas: secret = the secret key used to sign the token

Properties

claims
Claims claims [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
header
Header header [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta