Skip to content

Commit

Permalink
Merge pull request #278 from boostcampwm-2024/feature/be/#277-jwtExpi…
Browse files Browse the repository at this point in the history
…resIn

[BE][Feat] #277 : JWT 토큰 만료 기간 재설정
  • Loading branch information
happyhyep authored Nov 26, 2024
2 parents 6f2e080 + c981337 commit 6b8660f
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 6b8660f

Please sign in to comment.