chainAuthenticate
function chainAuthenticate(...authenticators): AuthenticateFn;Defined in: src/http/bearer.ts:82
Chain multiple authenticate callbacks, trying each in order.
Each authenticator is called in sequence. Plain Error (credential
rejection) causes the next authenticator to be tried. Error subclasses
(TypeError, RangeError, etc.), PermissionError-named errors, and
non-Error throws propagate immediately.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
…authenticators | AuthenticateFn[] |
Returns
Section titled “Returns”Throws
Section titled “Throws”Error if no authenticators are provided.