feat: Allow setting API keys expiration (#12954)

This commit is contained in:
Ricardo Espinoza
2025-02-03 11:16:37 -05:00
committed by GitHub
parent e39928dde8
commit 9bcbc2c2cc
18 changed files with 636 additions and 117 deletions

View File

@@ -83,6 +83,7 @@ export async function createUserWithMfaEnabled(
export const addApiKey = async (user: User) => {
return await Container.get(PublicApiKeyService).createPublicApiKeyForUser(user, {
label: randomName(),
expiresAt: null,
});
};