인증

펫시터 프로젝트를 진행하면서 이메일 인증을 통한 회원가입을 구현했다.심심한 회원가입을 좀 더 특별하게 만들어주고 싶었기에 시작했다.먼저 사용자에게 mail을 보내야하기에 Nodemailer 모듈을 사용했다.   Nodemailer :: NodemailerNodemailer Nodemailer is a module for Node.js applications to allow easy as cake email sending. The project got started back in 2010 when there was no sane option to send email messages, today it is the solution most Node.js users turn to by default. npm i..
문제상황펫시터 웹사이트를 구현하며 카카오톡 로그인을 넣기로 했다. 그러나 우리의 프로젝트는 res.session에 있는 user 값을 res.locals에 저장해, 유저의 로그인 유무를 판단했다. login = async (req, res, next) => { try { const { email, password } = req.body; if (!email || !password) { throw new customError( 400, "Bad Request", "아이디 / 비밀번호를 입력해주세요." ); } const responseFromService = await this.authSer..