- loginHandler(req: Request<{}, {}, {
email: undefined | string;
password: string;
username: undefined | string;
}, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>): Promise<Response<any, Record<string, any>>>
-
Parameters
-
req: Request<{}, {}, {
email: undefined | string;
password: string;
username: undefined | string;
}, ParsedQs, Record<string, any>>
-
res: Response<any, Record<string, any>>
Returns Promise<Response<any, Record<string, any>>>
This controller will be used to login the user and will create new session in database
Author
aayushchugh