module

Solerian::Auth

Constants

STORAGE = Path["./user.db.json"]
USERS = File.open(STORAGE, "r") do |f| Hash(String, User).from_json(f) end

Class methods

assert_auth(ctx)
Source
check_login(ctx : HTTP::Server::Context, username : String | Nil, secret : String | Nil) : String
Source
user?(ctx)
Source
username(ctx)
Source

Nested types