Authly::InMemoryDeviceCodeStore
Inherits Authly::DeviceCodeStore < Reference < Object
Constants
MAX_ENTRIES = 50000
Live device authorizations kept at most. /oauth/device/code needs no sign-in, so past it the oldest are dropped
rather than letting a flood of requests grow the store without bound.
SWEEP_EVERY = 64
Every this many writes, once at least SWEEP_THRESHOLD entries exist, expired ones are removed.
SWEEP_THRESHOLD = 256
Constructors
new
SourceInstance methods
delete(device_code : String)
Sourcefetch(device_code : String) : DeviceCodeData | Nil
Sourcefetch_by_user_code(user_code : String) : DeviceCodeData | Nil
Sourcesize
Sourcestore(device_code : String, data : DeviceCodeData)
Sourceupdate(device_code : String, data : DeviceCodeData)
Source