Skip to content

Commit

Permalink
Refresh cookie when expires less than 6 months from today
Browse files Browse the repository at this point in the history
  • Loading branch information
mjradwin authored Oct 28, 2024
1 parent d7ddb95 commit 7a32fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export function doesCookieNeedRefresh(ctx) {
const expMillis = expDt.getTime();
const now = Date.now();
const diff = (expMillis - now) / (24 * 60 * 60 * 1000);
return diff < 90;
return diff < 180;
}

/**
Expand Down

0 comments on commit 7a32fd7

Please sign in to comment.