Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
module
Yozgat::DB::RefreshTokens
Constants
REFRESH_TTL = "+30 days"
Class methods
find_active
(token_hash :
String
) :
ActiveRow
|
Nil
Source
insert
(user_id :
Int64
, token_hash :
String
, user_agent :
String
|
Nil
) :
Nil
Source
revoke_all_for_user
(user_id :
Int64
) :
Nil
Source
revoke_by_hash
(token_hash :
String
) :
Nil
Source
rotate!
(tx : ::
DB::Transaction
, old_id :
Int64
, user_id :
Int64
, new_hash :
String
, user_agent :
String
|
Nil
) :
Int64
Rotates a refresh token inside an open transaction. Returns the new row id.
Source
Nested types
Yozgat::DB::RefreshTokens::ActiveRow