mirror of
https://github.com/logto-io/logto.git
synced 2025-02-17 22:04:19 -05:00
11 lines
396 B
TypeScript
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);
|