Type aliases
ApiAuthorizer
ApiAuthorizer: (req: express.Request) => boolean | Promise<boolean>
Type declaration
-
- (req: express.Request): boolean | Promise<boolean>
-
Parameters
Returns boolean | Promise<boolean>
BasicAuthAuthorizer
BasicAuthAuthorizer: (user: string, password: string) => boolean | Promise<boolean>
Type declaration
-
- (user: string, password: string): boolean | Promise<boolean>
-
Parameters
-
user: string
-
password: string
Returns boolean | Promise<boolean>
BodyParserOptions
BodyParserOptions: OptionsJson & OptionsText & OptionsUrlencoded
HTTPServer
HTTPServer: Server | Server
TokenAuthorizer
TokenAuthorizer: (token: string) => boolean | Promise<boolean>
Type declaration
-
- (token: string): boolean | Promise<boolean>
-
Parameters
Returns boolean | Promise<boolean>
UseErrorHandlerSetting
UseErrorHandlerSetting: boolean | Options
An API authorizer.
The current request context.
The result, which indicates if authorization is valid or not.