class Kemal::AuthToken
- Kemal::AuthToken
- Reference
- Object
Included Modules
- HTTP::Handler
Defined in:
kemal-auth-token/auth_token.crConstructors
Instance Method Summary
- #algorithm : String
- #call(context)
- #load_user(&block : Hash(String, JSON::Any) -> UserHash)
- #path : String
- #path=(path : String)
- #secret_key : String
- #sign_in(&block : String, String -> UserHash)
Constructor Detail
def self.new(secret_key : String = Random::Secure.hex, algorithm : String = "HS256", path : String = "/sign_in")
#