struct

KemalIdentity::ApiTokens::Lookup

Inherits Struct < Value < Object

The result of resolving an API token: token state and account status, together.

The same shape, and the same reason, as Sessions::Lookup. Fetching the token and then fetching the account is two round trips on every authenticated API request, which is the busiest path an API has. One indexed lookup with a join.

Constructors

new(token : Token, account_auth_version : Int32, account_disabled_at : Time | Nil = nil)
Source

Instance methods

account_auth_version
Source
account_disabled?
Source
account_disabled_at
Source
token
Source