struct

PlaceOS::Model::JWTBase

Inherits JSON::Serializable < Struct < Value < Object

Base ORM for JWT

Constants

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

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Class methods

decode(token : String, key : String | Nil = nil, algorithm : JWT::Algorithm = JWT::Algorithm::RS256, validate : Bool = true)
Source

Instance methods

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