Skip to content

Commit

Permalink
chore: 갱신 한도 30분으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Xvezda committed Apr 28, 2024
1 parent 639daac commit 34b457b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api/src/services/auth/v1/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ const withSession: MiddlewareHandler<{
const payload = await verifyToken<SessionPayload>(c, sessionId);
let user = payload['http:cheda.kr/user'];

const threshold = 1000 * 60 * 10;
const threshold = 1000 * 60 * 30;
if (new Date(payload.exp! * 1000).getTime() <= Date.now() + threshold) {
const securedToken = await decryptToken(c, sessionSid);
const securedPayload = await verifyToken<SecuredSessionPayload>(c, securedToken);
Expand Down

0 comments on commit 34b457b

Please sign in to comment.