프로그래밍/Weekly I Learned

2023.10.27 + cookie

타코코딩 2023. 10. 27. 12:53

로그인 인증절차


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