fix: expiration data for access tokens (#7851)

This commit is contained in:
Laurin 2026-03-17 09:29:00 +01:00 committed by GitHub
parent 7f58cb856b
commit 219cac8c4d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'hive': patch
---
Fix access token expiration date.

View file

@ -180,7 +180,7 @@ export function createAccessToken(
) {
const now = Math.floor(Date.now() / 1000);
// Access tokens expires in 6 hours
const expiresIn = Math.floor(now + 60 * 60 * 6 * 1000);
const expiresIn = Math.floor(now + 60 * 60 * 6);
const data: AccessTokenInfo = {
iat: now,