class

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

Instance methods

cleanup_expired

Clean up expired device codes

Source
delete(device_code : String)
Source
fetch(device_code : String) : DeviceCodeData | Nil
Source
fetch_by_user_code(user_code : String) : DeviceCodeData | Nil
Source
size
Source
store(device_code : String, data : DeviceCodeData)
Source
update(device_code : String, data : DeviceCodeData)
Source