Skip to content

authorization

authorization: (options?) => {(__namedParameters): Promise<{ response: { headers: any[][] | undefined; statusCode: any; }; value?: undefined; } | { response?: undefined; value: any; }>; setPath: string; }

Defined in: http/authorization.js:52

Creates an authorization middleware that parses the Authorization header and dispatches to the matching strategy handler.

Authorization configuration

object[]

Authentication strategy definitions

{(__namedParameters): Promise<{ response: { headers: any[][] | undefined; statusCode: any; }; value?: undefined; } | { response?: undefined; value: any; }>; setPath: string; }

setPath: string