Total :
/ Today :
/ Yesterday :
Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- spread operator
- sessionStorage
- spring
- ssh
- zombie-hit apartment
- ES6
- AWS Route53
- topologySpreadConstraints
- AWS
- json
- MySQL Error
- mysql
- post
- Get
- Java
- node.js
- jsp
- 영화예매
- git
- javascript
- chartjs
- Kubernetes
- ajax
- html
- AWS RDS
- mongodb
- 인생이재밌다
- terminationGracePeriodSeconds
- Bootstrap
- 예매로직
Archives
- Today
- Total
목록auth (1)
jongviet
Aug 11, 2021 - Nodejs Auth 처리 관련
*8월11일 *index.js //auth 라우터를 통해서 어느 페이지에서든지 auth 상태 확인 가능 app.get('/api/users/auth', auth, (req, res) => { //미들웨어를 넘어 온 것은 authentication이 정상 처리된 것; 따라서 해당하는 유저 정보를 프론트로 res res.status(200).json({ _id: req.user._id, isAdmin: req.user.role === 0 ? false : true, isAuth : true, email : req.user.email, name: req.user.name, lastname: req.user.lastname, role: req.user.role, image: req.user.image }) })..
node, express, nestjs
2021. 8. 11. 17:15