abstract struct PlaceOS::Model::JWTBase

Overview

Base ORM for JWT

Included Modules

Direct Known Subclasses

Defined in:

placeos-models/base/jwt.cr

Constant Summary

Log = (::Log.for(PlaceOS::Model)).for("jwt")

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

Class Method Detail

def self.decode(token : String, key : String | Nil = nil, algorithm : JWT::Algorithm = JWT::Algorithm::RS256, validate : Bool = true) #

Instance Method Detail

def encode(key : String | Nil = nil, algorithm : JWT::Algorithm = JWT::Algorithm::RS256) #