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