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

12 lines
396 B
TypeScript
Raw Normal View History

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,
2024-11-21 14:18:13 +08:00
// SAML applications are used as traditional web applications.
ApplicationType.SAML,
].includes(type);