Skip to content

Commit

Permalink
[BE][Feat] #277 : JWT 토큰 만료 기간 재설정
Browse files Browse the repository at this point in the history
- JWT 토큰 만료 기간 재설정
  • Loading branch information
happyhyep committed Nov 26, 2024
1 parent 117e1b4 commit c981337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/services/authService.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const loginUser = async (id, password) => {
}

// JWT 생성
const token = jwt.sign({ userId: user.id }, process.env.JWT_SECRET, { expiresIn: '1h' });
const token = jwt.sign({ userId: user.id }, process.env.JWT_SECRET, { expiresIn: '7d' });
return { token, userId: user.id };
};

Expand Down

0 comments on commit c981337

Please sign in to comment.