struct Backend::Api::Auth::Token

Overview

JWT token

Included Modules

Defined in:

backend/api/auth.cr

Constructors

Instance Method Summary

Constructor Detail

def self.decode(jwt : String) : self #

def self.from_hash(token : Hash(String, JSON::Any)) : self #

def self.new(iat : Int64, exp : Int64, jti : UUID) #

def self.new(pull : JSON::PullParser) #

Instance Method Detail

def encode : String #

def exp : Int64 #

def iat : Int64 #

def jti : UUID #