@lucidcms/core
Version:
The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.
1 lines • 647 B
Source Map (JSON)
{"version":3,"file":"get-available-providers.mjs","names":[],"sources":["../../../src/libs/auth-providers/get-available-providers.ts"],"sourcesContent":["import type { Config } from \"../../types.js\";\n\n/**\n * Fetches available auth providers from the config.\n */\nconst getAvailableProviders = (config: Config) => {\n\treturn {\n\t\tdisablePassword: config.auth.password.enabled === false,\n\t\tproviders: config.auth.providers.filter((provider) => provider.enabled),\n\t};\n};\n\nexport default getAvailableProviders;\n"],"mappings":"AAKA,MAAM,EAAyB,IACvB,CACN,gBAAiB,EAAO,KAAK,SAAS,UAAY,GAClD,UAAW,EAAO,KAAK,UAAU,OAAQ,GAAa,EAAS,OAAO,CACvE"}