represents a token
encodes the token
used to get the signature of the token Parmas: secret = the secret key used to sign the token
See Implementation
represents a token