mirror of
https://github.com/PretendoNetwork/account.git
synced 2026-04-26 00:06:14 -05:00
fix: set access token expiration time to the correct time again
This commit is contained in:
parent
e99700da51
commit
07fc399303
|
|
@ -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))
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user