Skip to content

Commit

Permalink
chore: 재로그인 주기 달로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Xvezda committed May 3, 2024
1 parent 5d3f72c commit 76536e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/api/src/services/auth/v1/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,15 +435,15 @@ app.get('/callback', async (c) => {
expires
);

const weekLater = new Date(Date.now() + 1000 * 60 * 60 * 24 * 7);
const monthLater = new Date(Date.now() + 1000 * 60 * 60 * 24 * 30);
let securedSession = await signToken(
c,
prefixRoot(JWT_PREFIX, {
user: {
refreshToken: user.refreshToken,
},
}) satisfies SecuredSessionPayload,
weekLater,
monthLater,
);
securedSession = await encryptToken(c, securedSession);

Expand Down

0 comments on commit 76536e5

Please sign in to comment.