module Garden::Auth
Extended Modules
Defined in:
auth.crConstant Summary
-
ALG =
JWT::Algorithm::HS256
-
LEEWAY =
10.minutes
-
TIMEOUT =
1.day
-
TOKEN =
ENV["SOLHTTP_SECRET"]
Instance Method Summary
- #auth_user(ctx : HTTP::Server::Context) : DB::User | Nil
- #auth_user_id(ctx : HTTP::Server::Context) : String | Nil
- #check_token(ctx : HTTP::Server::Context, user_id : String) : Bool
- #mint_token(user : DB::User)