module Kemal::Authorizer

Overview

class MyStorableUserType < Kemal::Authorizer::StorableUser include JSON::Serializable include Kemal::Session::StorableObject

property id : Int32 property name : String

def initialize(@id : Int32, @name : String); end end

and then

Kemal::Authorizer.config do |config| config.user_type = MyStorableUserType end

Defined in:

kemal-authorizer.cr
kemal-authorizer/config.cr
kemal-authorizer/handlers.cr
kemal-authorizer/user_object.cr

Constant Summary

VERSION = "0.3.0"

Class Method Summary

Class Method Detail

def self.config(&) #

[View source]
def self.config #

[View source]