Skip to content

Commit

Permalink
๐Ÿ”feat: ๊ฐœ๋ฐœ์šฉ ์ž„์‹œ๋กœ ์•ก์„ธ์Šค,๋ฆฌํ”„๋ ˆ์‹œ ํ† ํฐ๋“ค ๋งŒ๋ฃŒ๊ธฐํ•œ ์ผ์ฃผ์ผ๋กœ ์„ค์ • (#142)
Browse files Browse the repository at this point in the history
  • Loading branch information
pminsung12 authored Nov 30, 2023
1 parent 2b1eaf8 commit 283e6fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/src/auth/auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,11 @@ export class AuthService {
userId: user.userId,
tokenType,
};
const ONE_WEEK = 7 * 24 * 60 * 60;
return this.jwtService.sign(payload, {
secret: process.env['JWT_SECRET'],
expiresIn: tokenType === 'access' ? 300 : 3600,
// expiresIn: tokenType === 'access' ? 300 : 3600,
expiresIn: tokenType === 'access' ? ONE_WEEK : ONE_WEEK,
});
}

Expand Down

0 comments on commit 283e6fa

Please sign in to comment.