Optionalopts: AuthManagerOptionsAttach an OIDCAuth instance so this manager can refresh CATs. Registers a listener to update internal CAT/refresh state on new tokens.
Ensure there are enough BAT tokens (topping up if needed)
Minimum tokens needed.
Ensure a valid CAT is available (refresh if expiring soon). Returns a token safe to send right now, or undefined if unobtainable.
OptionalminValidSecs: numberReturn a deep-copied snapshot of the current BAT pool (full Proofs, including dleq).
Gets a Blind Authentication Token (BAT)
Call (not used in our implementation)
The serialized BAT ready to insert into request header.
Replace or merge the current BAT pool with previously persisted BATs.
AuthManager.