diff --git a/.changeset/silent-drinks-fall.md b/.changeset/silent-drinks-fall.md new file mode 100644 index 000000000..92532a624 --- /dev/null +++ b/.changeset/silent-drinks-fall.md @@ -0,0 +1,5 @@ +--- +'hive': patch +--- + +Fix access token expiration date. diff --git a/packages/services/api/src/modules/auth/lib/supertokens-at-home/crypto.ts b/packages/services/api/src/modules/auth/lib/supertokens-at-home/crypto.ts index 2b61db089..61fc45152 100644 --- a/packages/services/api/src/modules/auth/lib/supertokens-at-home/crypto.ts +++ b/packages/services/api/src/modules/auth/lib/supertokens-at-home/crypto.ts @@ -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,