Optional onUnauthorized
onUnauthorized: (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>) => any
Type declaration
-
- (request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>): any
-
Parameters
-
request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
response: Response<any, Record<string, any>>
Returns any
Optional setupToken
setupToken: (token: any, request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>) => any
Type declaration
-
- (token: any, request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, response: Response<any, Record<string, any>>): any
-
Parameters
-
token: any
-
request: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
response: Response<any, Record<string, any>>
Returns any
Options for 'withJWT()' function.