Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
cgit-auth
master
Cgit
Auth
Config
CookieAuthorizer
Crypt
Form
Labels
FormValidator
HMACHelpers
InvalidSignature
PasswordAuthenticator
Session
Built with Crystal 1.9.2
2023-10-07 19:49:04 UTC
class
Cgit::Auth::Session
Cgit::Auth::Session
Reference
Object
Extended Modules
Cgit::Auth::HMACHelpers
Defined in:
cgit-auth/session.cr
Constructors
.new
(user : String, expiry_date : Time =
Time
.utc
+
1
.month)
Class Method Summary
.deserialize
(cookie : String)
Instance Method Summary
#expired?
#serialize
#user
: String
Constructor Detail
def self.
new
(user : String, expiry_date : Time =
Time
.utc
+
1
.month)
#
[
View source
]
Class Method Detail
def self.
deserialize
(cookie : String)
#
[
View source
]
Instance Method Detail
def
expired?
#
[
View source
]
def
serialize
#
[
View source
]
def
user
: String
#
[
View source
]