feat(user-auth): make users auth token expiration customizable for orgs

This commit is contained in:
carlosmonastyrski
2025-04-28 17:43:10 -03:00
parent dbb0b28453
commit e99e360339
11 changed files with 220 additions and 8 deletions
+4 -2
View File
@@ -350,7 +350,8 @@ export const orgServiceFactory = ({
enforceMfa,
selectedMfaMethod,
allowSecretSharingOutsideOrganization,
bypassOrgAuthEnabled
bypassOrgAuthEnabled,
userTokenExpiration
}
}: TUpdateOrgDTO) => {
const appCfg = getConfig();
@@ -451,7 +452,8 @@ export const orgServiceFactory = ({
enforceMfa,
selectedMfaMethod,
allowSecretSharingOutsideOrganization,
bypassOrgAuthEnabled
bypassOrgAuthEnabled,
userTokenExpiration
});
if (!org) throw new NotFoundError({ message: `Organization with ID '${orgId}' not found` });
return org;