mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
fix: expiration data for access tokens (#7851)
This commit is contained in:
parent
7f58cb856b
commit
219cac8c4d
2 changed files with 6 additions and 1 deletions
5
.changeset/silent-drinks-fall.md
Normal file
5
.changeset/silent-drinks-fall.md
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'hive': patch
|
||||
---
|
||||
|
||||
Fix access token expiration date.
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue