class Kemal::AuthToken

Included Modules

Defined in:

kemal-auth-token/auth_token.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(secret_key : String = Random::Secure.hex, algorithm : String = "HS256", path : String = "/sign_in") #

[View source]

Instance Method Detail

def algorithm : String #

[View source]
def call(context) #

[View source]
def load_user(&block : Hash(String, JSON::Any) -> UserHash) #

[View source]
def path : String #

[View source]
def path=(path : String) #

[View source]
def secret_key : String #

[View source]
def sign_in(&block : String, String -> UserHash) #

[View source]