closes #4714 We cannot set null expiration dates for api keys. So we will set to 100 years instead of null. If apiKey expires in more that 10 years, it is displayed as "Never expires"
14 lines
436 B
TypeScript
14 lines
436 B
TypeScript
import { NEVER_EXPIRE_DELTA_IN_YEARS } from '@/settings/developers/constants/NeverExpireDeltaInYears.ts';
|
|
|
|
export const EXPIRATION_DATES: {
|
|
value: number | null;
|
|
label: string;
|
|
}[] = [
|
|
{ label: '15 days', value: 15 },
|
|
{ label: '30 days', value: 30 },
|
|
{ label: '90 days', value: 90 },
|
|
{ label: '1 year', value: 365 },
|
|
{ label: '2 years', value: 2 * 365 },
|
|
{ label: 'Never', value: NEVER_EXPIRE_DELTA_IN_YEARS * 365 },
|
|
];
|