Fix Never api key expiration dates (#4965)
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"
This commit is contained in:
@ -40,6 +40,7 @@ export const SettingsDevelopersApiKeysNew = () => {
|
||||
const expiresAt = DateTime.now()
|
||||
.plus({ days: formValues.expirationDate ?? 30 })
|
||||
.toString();
|
||||
|
||||
const newApiKey = await createOneApiKey?.({
|
||||
name: formValues.name,
|
||||
expiresAt,
|
||||
|
||||
Reference in New Issue
Block a user