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.
Parameters
Section titled “Parameters”options?
Section titled “options?”Authorization configuration
strategies?
Section titled “strategies?”object[]
Authentication strategy definitions
Returns
Section titled “Returns”{(__namedParameters): Promise<{ response: { headers: any[][] | undefined; statusCode: any; }; value?: undefined; } | { response?: undefined; value: any; }>; setPath: string; }
setPath
Section titled “setPath”setPath:
string