UNPKG

@lucidcms/core

Version:

The core of the Lucid CMS. It's responsible for spinning up the API and serving the CMS.

2 lines 659 B
import e from"zod";const t=e.object({type:e.literal(`oidc`),clientId:e.string(),clientSecret:e.string(),issuer:e.url(),authorizationEndpoint:e.url(),scopes:e.array(e.string()).optional(),tokenEndpoint:e.url().optional(),userinfoEndpoint:e.url().optional(),additionalAuthParams:e.record(e.string(),e.string()).optional(),mappers:e.object({userInfo:e.any().optional()}).optional()}),n=e.discriminatedUnion(`type`,[t]),r=e.object({key:e.string(),name:e.string(),icon:e.string().optional(),enabled:e.boolean(),type:e.enum([`oidc`]),config:n});export{n as AuthProviderConfigSchema,r as AuthProviderSchema,t as OIDCConfigSchema}; //# sourceMappingURL=schema.mjs.map