basalt / auth-saml/src / MemoryAssertionReplayCache
Class: MemoryAssertionReplayCache
Defined in: auth-saml/src/index.ts:166
In-process SamlAssertionReplayCache (per replica).
Implements
Constructors
Constructor
> new MemoryAssertionReplayCache(now?): MemoryAssertionReplayCache
Defined in: auth-saml/src/index.ts:168
Parameters
now?
() => number
Returns
MemoryAssertionReplayCache
Methods
consume()
> consume(key, ttlMs): Promise<boolean>
Defined in: auth-saml/src/index.ts:170
Atomically records key for ttlMs. Resolves true when the key was not present (first use), false when it was already consumed.
Parameters
key
string
ttlMs
number
Returns
Promise<boolean>