fix: set access token expiration time to the correct time again

This commit is contained in:
Jonathan Barrow 2026-01-03 13:56:11 -05:00
parent e99700da51
commit 07fc399303
No known key found for this signature in database
GPG Key ID: 2A7DAA6DED5A77E5
3 changed files with 3 additions and 3 deletions

View File

@ -124,7 +124,7 @@ router.post('/', async (request: express.Request, response: express.Response): P
token_type: TokenType.OAuthAccess,
title_id: BigInt(0),
issued: new Date(),
expires: new Date(Date.now() + 12 * 3600 * 1000)
expires: new Date(Date.now() + (3600 * 1000))
}
});

View File

@ -431,7 +431,7 @@ router.post('/', async (request: express.Request, response: express.Response): P
token_type: TokenType.OAuthAccess,
title_id: BigInt(0),
issued: new Date(),
expires: new Date(Date.now() + 12 * 3600 * 1000)
expires: new Date(Date.now() + (3600 * 1000))
}
});

View File

@ -180,7 +180,7 @@ router.post('/access_token/generate', deviceCertificateMiddleware, consoleStatus
token_type: TokenType.OAuthAccess,
title_id: BigInt(0), // TODO - Add this?
issued: new Date(),
expires: new Date(Date.now() + 12 * 3600 * 1000)
expires: new Date(Date.now() + (3600 * 1000))
}
});