Authly::InMemoryStore
Inherits Enumerable < Authly::TokenStore < Reference < Object
Constructors
Instance methods
consume(token_id : String) : Bool
Revoke token_id and report whether this call was the one that revoked it, so a
one-time credential can be redeemed by exactly one of several concurrent requests.
The default is check-then-revoke; a shared store should override it with an atomic
operation (for Redis, SET NX).
fetch(token_id : String)
Sourcevalid?(token_id : String) : Bool
Source