module JWT

Extended Modules

Defined in:

jwt.cr
jwt/errors.cr
jwt/version.cr

Constant Summary

VERSION = "0.4.0"

Instance Method Summary

Instance Method Detail

def decode(token : String, key : String = "", algorithm : Algorithm = Algorithm::None, verify = true, validate = true, **opts) : Tuple #

[View source]
def encode(payload, key : String, algorithm : Algorithm, **header_keys) : String #

[View source]
def encode_header(algorithm : Algorithm, **keys) : String #

[View source]
def encode_payload(payload) : String #

[View source]
def encoded_signature(algorithm : Algorithm, key : String, data : String) #

[View source]
def sign(algorithm : Algorithm, key : String, data : String) #

[View source]