Skip to content

Commit

Permalink
[Chore] 토큰 만료시간 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yeseul106 committed Sep 2, 2023
1 parent f6e705b commit deb13f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/jwtHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const sign = (userId: number) => {
userId, //피카북 서버 userId
};

const accessToken = jwt.sign(payload, privateKey, {expiresIn: "1m"});
const accessToken = jwt.sign(payload, privateKey, {expiresIn: "10m"});
return accessToken;
};

Expand Down Expand Up @@ -37,7 +37,7 @@ const getRefreshToken = () => {
const payload = {};

const refreshToken = jwt.sign(payload, privateKey, {
expiresIn: "2m",
expiresIn: "30d",
});

return refreshToken;
Expand Down

0 comments on commit deb13f3

Please sign in to comment.