Skip to content

Commit 0e32ef7

Browse files
authored
fix: use correct parsing for JWT exp field (#16)
1 parent a54bc20 commit 0e32ef7

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
pnpm-lock.yaml
2+
CHANGELOG.md

renovate.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": [
4-
"config:recommended"
5-
]
3+
"extends": ["config:recommended"]
64
}

src/server.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ export function newServer() {
5353
}
5454

5555
if (token.exp) {
56-
messageParts.push(`- **Expiration**: ${new Date(token.exp)}`);
56+
messageParts.push(
57+
`- **Expiration**: ${new Date(token.exp * 1000)}`,
58+
);
5759
}
5860
}
5961
}

0 commit comments

Comments
 (0)