로그인 인증절차
client ----<<로그인>>---------> server[id,pass] <-<<id>>----------->DB(MYSQL)
bcrypt.compare() <---------<pass>---- DB(MYSQL)
----<<result:true>> ------------------
<------------------ res [[JWT 생성+ 쿠키탑승]]
JWT: Header/Payload/Signiture
npm i josonwebtoken, npm i cookie-parser
새로운요청 + 쿠키(JWT) ----------> req.cookies(JWT) 가져옴
https://www.lastpass.com/
#1 Password Manager & Vault App with Single-Sign On & MFA Solutions - LastPass
Go beyond saving passwords with the best password manager! Generate strong passwords and store them in a secure vault. Now with single-sign on (SSO) and adaptive MFA solutions that integrate with over 1,200 apps.
www.lastpass.com
비밀번호생성기
https://jwt.io/
JWT.IO
JSON Web Tokens are an open, industry standard RFC 7519 method for representing claims securely between two parties.
jwt.io
'프로그래밍 > Weekly I Learned' 카테고리의 다른 글
2023.10.30+ react란? (0) | 2023.10.30 |
---|---|
2023.10.18+ 타입스크립트 스타일컴포넌트 다크모드 (1) | 2023.10.29 |
2023.10.25+ env패턴 (0) | 2023.10.25 |
2023.10.23+ node.js mysql 연동 (0) | 2023.10.23 |
2023.10.20+ sql delete 외 마무리 (2) | 2023.10.20 |