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
- expess
- ejs 문법
- updateone
- typescript #unknown
- 정적 페이지
- updatemany
- Passport
- typescript #class #constructor #public #private #static #extends #protected #typeof #in #instanceof #never
- sendFile
- TypeScript #문법
- typescript #constructor #class #public #private
- github#githubpages#빈화면#basename
- serializeUser
- git vscode
- github#githubpages#gh-pages#deploy
- git#github#init#add#commit#restore#log#staging area#repository#git사용법
- CSS
- react#로스트아크#mbti#테스트
- typescript #react #jsx #component #usestate
- mongodb 입출력
- deserializeUser
- typescript #class #extends #public #private #protected #static
- Promise #async #await #try #catch
- typescript #import #export #*
- GitHub Actions
- connect-mongo
- insertone
- e.target
- __dirname
- github#로컬저장소#원격저장소
Archives
- Today
- Total
목록Token (1)
VaIice의 이야기
[Node.js] Session, Token, OAuth, passport
1. 알고리즘 (1) 회원가입 유저가 가입 시 ID, PW를 DB에 저장 (2) 로그인 유저가 로그인 시 ID, PW를 서버로 전송 서버는 DB에 있는 ID, PW가 일치하는 경우 세션 또는 토큰 발급 (3) 로그인 시 서버기능 유저가 데이터 요청 시 세션 또는 토큰 제시 서버는 확인 후 데이터 전송 2. session (1) 로그인 DB 또는 서버 메모리에 아이디, 로그인 날짜, 유효기간, session ID 기록 유저에게 session ID 발급 (2) 로그인 시 서버기능 유저가 GET/POST 요청 시 session ID 제출 서버는 session ID를 가지고 DB 조회 이상이 없다면 진행 장점: 요청마다 엄격한 체크 가능 단점: DB에서 ..
[Node.js]
2024. 7. 16. 19:42