본문 바로가기

RISK IT

검색하기
RISK IT
프로필사진 nomoremystery

  • 분류 전체보기 (152)
    • Programming (0)
      • 데이터베이스 (0)
      • 네트워크 (0)
      • 운영체제 (0)
      • 자료구조 (0)
      • HTML (0)
    • 책, 독서 (10)
    • 영화, 다큐멘터리 (1)
    • 운동&건강 (89)
      • 월별 운동일지 (8)
      • 일별 운동일지 (79)
      • 부상 & 치료 (2)
    • IT (52)
      • TIL (47)
      • Algorithm & CodeKata (5)
      • Error (0)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • 독서 리뷰
  • 크로스핏
  • node.js
  • 달리기
  • dql
  • 위코드
  • git
  • 메디패치
  • dml
  • Til
  • 홈트
  • 운동일지
  • 드림코딩
  • wecode
  • node
  • SQL
  • 걷기
  • 러닝
  • nodejs
  • 월별 운동일지
  • 활동 킬로칼로리
  • 박스점프
  • JavaScript
  • 습윤밴드
  • Udemy
  • code kata
  • express
  • github
  • axios
  • MySQL
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록westagram (1)

RISK IT

[TIL22_23.1.30.] [Node] "westagram" 인증 & 인가 (bcrypt, jwt 모듈)

추가된 부분 const bcrypt = require('bcrypt'); const jwt = require('jsonwebtoken'); bcrypt, jsonwebtoken 모듈 추가 app.post('/users/signup', async (req, res) => { const { name, email, password, profileImage } = req.body; const saltRounds = 12; const hashedPassword = await bcrypt.hash(password, saltRounds); await mysqlDataSource.query( `INSERT INTO users ( name, email, password, profile_image ) VALUES ( ?,..

IT/TIL 2023. 1. 31. 00:28
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바