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 |
Tags
- sendFile
- github#로컬저장소#원격저장소
- GitHub Actions
- mongodb 입출력
- Promise #async #await #try #catch
- typescript #unknown
- typescript #class #constructor #public #private #static #extends #protected #typeof #in #instanceof #never
- expess
- git#github#init#add#commit#restore#log#staging area#repository#git사용법
- react#로스트아크#mbti#테스트
- github#githubpages#빈화면#basename
- updatemany
- e.target
- connect-mongo
- insertone
- typescript #import #export #*
- serializeUser
- typescript #react #jsx #component #usestate
- git vscode
- ejs 문법
- TypeScript #문법
- 정적 페이지
- github#githubpages#gh-pages#deploy
- typescript #constructor #class #public #private
- typescript #class #extends #public #private #protected #static
- CSS
- Passport
- updateone
- __dirname
- deserializeUser
Archives
- Today
- Total
목록serializeUser (1)
VaIice의 이야기

1. 순서 (1) 가입: ID, PW을 DB에 저장 (2) 로그인: DB와 비교 (3) 세션 만들기: 로그인 시간, 유효기간 등 Document 발행 (4) 쿠키 전송 후 저장 (5) 로그인 여부 확인: 요청 시 쿠키에 있는 session을 DB와 비교 2. passport 라이브러리 npm install express-session passport passport-local express-session: 세션 생성, 저장, 관리 등 세션 관리 라이브러리 passport: 회원 인증 메인 라이브러리 passport-local: ID, PW 방식 인증 라이브러리 3. 세팅 // server.js const session = require('express-session..
카테고리 없음
2024. 7. 17. 23:56