Merge pull request #695 from navi-infra/INFRA-3616

INFRA-3704 | Saqib | Updates database access token ttl to 24hrs.
This commit is contained in:
Saqib Perwaiz
2024-10-07 14:54:43 +05:30
committed by GitHub

View File

@@ -8,9 +8,9 @@ export const databaseTokenValidationSchema = yup.object({
.string()
.test(
'test',
'Select a time greater than the current time,also, time selected should not be more than 30 days',
'Select a time greater than the current time, also the time selected should not be more than 24 hrs',
value => {
const validTillDays = 30;
const validTillDays = 1;
return (
value !== undefined &&
Date.parse(value) - Date.now() <= validTillDays * 24 * 60 * 60 * 1000 &&