0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00
logto/packages/schemas/src/utils/application.ts
2024-11-21 14:59:29 +08:00

11 lines
396 B
TypeScript

import { ApplicationType } from '../db-entries/custom-types.js';
/** If the application type has (or can have) secrets. */
export const hasSecrets = (type: ApplicationType) =>
[
ApplicationType.MachineToMachine,
ApplicationType.Protected,
ApplicationType.Traditional,
// SAML applications are used as traditional web applications.
ApplicationType.SAML,
].includes(type);