basalt / auth-saml/src / SamlAssertionReplayCache
Interface: SamlAssertionReplayCache
Defined in: auth-saml/src/index.ts:157
Single-use store for consumed assertion ids.
Methods
consume()
> consume(key, ttlMs): Promise<boolean>
Defined in: auth-saml/src/index.ts:162
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>