class

KemalcrStarter::Infrastructure::DB::ApiKeyRepository

Inherits KemalcrStarter::Infrastructure::DB::Repository < Reference < Object

Instance methods

count_active_for_organization(organization_id : String) : Int64
Source
create(id : String, organization_id : String, name : String, key_prefix : String, secret_hash : String, expires_at : Time | Nil = nil) : ApiKeyRecord
Source
delete_all
Source
find(id : String) : ApiKeyRecord | Nil
Source
find_active_by_prefix(key_prefix : String) : ApiKeyRecord | Nil
Source
find_active_for_organization(id : String, organization_id : String) : ApiKeyRecord | Nil
Source
list_active_for_organization(organization_id : String, limit : Int32 = 1000, offset : Int32 = 0) : Array(ApiKeyRecord)
Source
revoke(id : String, at : Time) : ApiKeyRecord | Nil
Source
touch_last_used(id : String, at : Time) : ApiKeyRecord | Nil
Source