Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
module
Yozgat::Auth
Constants
ACCESS_TTL = 15.minutes
REFRESH_RAW_BYTES = 32
REFRESH_TTL_SEC = ((30 * 24) * 60) * 60
Class methods
authenticated
(env :
HTTP::Server::Context
) :
Claims
|
Nil
Source
bearer_token
(headers :
HTTP::Headers
) :
String
|
Nil
Source
hash_password
(password :
String
) :
String
Source
hash_refresh_plain
(plain :
String
) :
String
|
Nil
Source
mint_refresh_token
Source
sign_access_token
(user_id :
Int64
, email :
String
, role :
String
) :
String
Source
user_agent
(headers :
HTTP::Headers
) :
String
|
Nil
Source
verify_access_token
(token :
String
) :
Claims
|
Nil
Source
verify_password
(password :
String
, hash :
String
) :
Bool
Source
Nested types
Yozgat::Auth::Claims