Authly::InMemoryChallengeStore
Inherits Authly::ChallengeStore < Reference < Object
Constants
MAX_ENTRIES = 50000
SWEEP_EVERY = 64
SWEEP_THRESHOLD = 256
Constructors
new
SourceInstance methods
cleanup_expired
Sourceconsume!(challenge_id : String) : Challenge | Nil
Atomically deletes and returns an unexpired challenge, or nil if unknown, expired, or already consumed.
delete(challenge_id : String) : Bool
Sourcefetch(challenge_id : String) : Challenge | Nil
Sourcerecord_attempt!(challenge_id : String, max_attempts : Int32 = 1) : Challenge
Atomically records a verification attempt against challenge_id.
Raises Error.expired_challenge if expired, or Error.invalid_grant if missing/consumed.
size
Sourcestore(challenge : Challenge) : Challenge
Source