- logoutHandler(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>): Promise<undefined | Response<any, Record<string, any>>>
-
Parameters
-
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
res: Response<any, Record<string, any>>
Returns Promise<undefined | Response<any, Record<string, any>>>
This controller will logout the user by invalidating the current session
Author
aayushchugh