RotatingCredentials
Auto-generated API reference for RotatingCredentials.
Interface: RotatingCredentials
Defined in: adapters/src/credential-rotation.ts:16
#Properties
#current
current:
CredentialResolver
Defined in: adapters/src/credential-rotation.ts:18
Resolve the current secret. Adapters call this on every request.
#onRotate
onRotate: (
handler) => () =>void
Defined in: adapters/src/credential-rotation.ts:22
Subscribe to rotation events. Returns an unsubscribe handle.
#Parameters
handler
(event) => void
#Returns
() => void
#rotate
rotate: (
next) =>Promise<string>
Defined in: adapters/src/credential-rotation.ts:20
Replace the in-memory secret. Returns the new value.
#Parameters
next
string
#Returns
Promise<string>