@baseplate-dev/plugin-auth 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +970 -0
- package/LICENSE +114 -123
- package/README.md +3 -3
- package/dist/auth/core/common.d.ts +2 -5
- package/dist/auth/core/common.js +15 -19
- package/dist/auth/core/components/auth-definition-editor.js +51 -30
- package/dist/auth/core/components/role-editor-form/role-dialog.d.ts +12 -0
- package/dist/auth/core/components/role-editor-form/role-dialog.js +29 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts +10 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.js +54 -0
- package/dist/auth/core/node.d.ts +3 -3
- package/dist/auth/core/node.js +29 -40
- package/dist/auth/core/schema/migrations.d.ts +3 -0
- package/dist/auth/core/schema/migrations.js +54 -0
- package/dist/auth/core/schema/plugin-definition.d.ts +11 -74
- package/dist/auth/core/schema/plugin-definition.js +9 -20
- package/dist/auth/core/schema/roles/constants.js +34 -0
- package/dist/auth/core/schema/roles/index.d.ts +3 -0
- package/dist/auth/core/schema/roles/index.js +3 -0
- package/dist/auth/core/schema/roles/schema.d.ts +62 -0
- package/dist/auth/core/schema/roles/schema.js +38 -0
- package/dist/auth/core/web.d.ts +3 -3
- package/dist/auth/core/web.js +34 -6
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/plugin.json +8 -0
- package/dist/auth/utils/get-auth-plugin-definition.d.ts +9 -0
- package/dist/auth/utils/get-auth-plugin-definition.js +10 -0
- package/dist/auth/utils/index.d.ts +2 -0
- package/dist/auth/utils/index.js +2 -0
- package/dist/better-auth/admin/common.d.ts +5 -0
- package/dist/better-auth/admin/common.js +29 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +510 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +123 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +510 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js +9 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +12 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +24 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +260 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +41 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +249 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +20 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts +2 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/index.js +2 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +22 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +78 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +162 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +509 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +114 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +510 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.js +9 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +12 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +24 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +260 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +41 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +495 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +22 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.d.ts +2 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/index.js +2 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +22 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +89 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +171 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +244 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +54 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/index.d.ts +2 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
- package/dist/better-auth/admin/node.d.ts +5 -0
- package/dist/better-auth/admin/node.js +57 -0
- package/dist/better-auth/admin/schema/manage-role-action.d.ts +12 -0
- package/dist/better-auth/admin/schema/manage-role-action.js +6 -0
- package/dist/better-auth/admin/schema/reset-password-action.d.ts +12 -0
- package/dist/better-auth/admin/schema/reset-password-action.js +6 -0
- package/dist/better-auth/admin/schema/roles-column.d.ts +9 -0
- package/dist/better-auth/admin/schema/roles-column.js +6 -0
- package/dist/better-auth/admin/web.d.ts +5 -0
- package/dist/better-auth/admin/web.js +39 -0
- package/dist/better-auth/constants/model-names.d.ts +8 -0
- package/dist/better-auth/constants/model-names.js +8 -0
- package/dist/better-auth/constants/packages.d.ts +4 -0
- package/dist/better-auth/constants/packages.js +4 -0
- package/dist/better-auth/core/common.d.ts +6 -0
- package/dist/better-auth/core/common.js +20 -0
- package/dist/better-auth/core/components/better-auth-definition-editor.d.ts +5 -0
- package/dist/better-auth/core/components/better-auth-definition-editor.js +62 -0
- package/dist/better-auth/core/index.d.ts +2 -0
- package/dist/better-auth/core/index.js +2 -0
- package/dist/better-auth/core/node.d.ts +5 -0
- package/dist/better-auth/core/node.js +64 -0
- package/dist/better-auth/core/schema/models.d.ts +3 -0
- package/dist/better-auth/core/schema/models.js +293 -0
- package/dist/better-auth/core/schema/plugin-definition.d.ts +8 -0
- package/dist/better-auth/core/schema/plugin-definition.js +9 -0
- package/dist/better-auth/core/schema/schema-issue-checker.d.ts +3 -0
- package/dist/better-auth/core/schema/schema-issue-checker.js +21 -0
- package/dist/better-auth/core/web.d.ts +6 -0
- package/dist/better-auth/core/web.js +26 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts +73 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.js +56 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +111 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.js +11 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.d.ts +13 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-paths.js +25 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts +56 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.js +57 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts +21 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js +30 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts +47 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.js +33 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/index.d.ts +4 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/index.js +3 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/templates/module/schema/admin-auth.mutations.ts +48 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/templates/module/services/admin-auth.service.ts +106 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts +44 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.js +48 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts +100 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.js +9 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.d.ts +14 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-paths.js +26 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts +42 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.js +59 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts +63 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.js +42 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/index.d.ts +2 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/index.js +2 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +151 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +109 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +234 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.js +11 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.d.ts +16 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-paths.js +28 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +116 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +91 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +48 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +40 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +110 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +83 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.d.ts +4 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.js +3 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +34 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/schema/user-session.queries.ts +22 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +107 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +84 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/utils/headers.utils.ts +21 -0
- package/dist/better-auth/generators/fastify/index.d.ts +5 -0
- package/dist/better-auth/generators/fastify/index.js +5 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.d.ts +66 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/index.js +9 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.d.ts +12 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-paths.js +24 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.d.ts +38 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/template-renderers.js +43 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.d.ts +27 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/generated/typed-templates.js +18 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/index.d.ts +2 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/index.js +2 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.d.ts +49 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/seed-initial-user.generator.js +64 -0
- package/dist/better-auth/generators/fastify/seed-initial-user/templates/src/prisma/seed-initial-user.ts +64 -0
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts +43 -0
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js +37 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts +72 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.js +11 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +14 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js +26 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.d.ts +27 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-renderers.js +43 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts +18 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js +27 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts +51 -0
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js +48 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.d.ts +2 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.js +2 -0
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-log-out.ts +16 -0
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-session.ts +29 -0
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +260 -0
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js +26 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +1492 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.js +9 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts +16 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js +28 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +261 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.js +44 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +2457 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +83 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.d.ts +2 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.js +2 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/forgot-password.tsx +133 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/login.tsx +152 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/register.tsx +164 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/reset-password.tsx +177 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/verify-email.tsx +109 -0
- package/dist/better-auth/generators/react/index.d.ts +4 -0
- package/dist/better-auth/generators/react/index.js +4 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +537 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.js +11 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.d.ts +13 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-paths.js +25 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +271 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.js +51 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +21 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +30 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +258 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.js +33 -0
- package/dist/better-auth/generators/react/react-better-auth/index.d.ts +4 -0
- package/dist/better-auth/generators/react/react-better-auth/index.js +3 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +291 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.js +74 -0
- package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +55 -0
- package/dist/better-auth/generators/react/react-better-auth/templates/src/services/auth-client.ts +13 -0
- package/dist/better-auth/index.d.ts +3 -0
- package/dist/better-auth/index.js +2 -0
- package/dist/better-auth/plugin.json +9 -0
- package/dist/better-auth/static/icon.svg +10 -0
- package/dist/common/components/auth-config-tabs.d.ts +2 -0
- package/dist/common/components/auth-config-tabs.js +21 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/local-auth/admin/common.d.ts +5 -0
- package/dist/local-auth/admin/common.js +29 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +510 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.js +127 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +510 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.js +9 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-paths.js +24 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +260 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.js +41 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +249 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.js +20 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.d.ts +22 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +78 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +162 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +509 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.js +119 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +510 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.js +9 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-paths.js +24 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +260 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.js +41 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +495 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.js +22 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.d.ts +22 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +89 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +171 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +244 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.js +54 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.d.ts +2 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
- package/dist/local-auth/admin/node.d.ts +5 -0
- package/dist/local-auth/admin/node.js +57 -0
- package/dist/local-auth/admin/schema/manage-role-action.d.ts +12 -0
- package/dist/local-auth/admin/schema/manage-role-action.js +6 -0
- package/dist/local-auth/admin/schema/reset-password-action.d.ts +12 -0
- package/dist/local-auth/admin/schema/reset-password-action.js +6 -0
- package/dist/local-auth/admin/schema/roles-column.d.ts +9 -0
- package/dist/local-auth/admin/schema/roles-column.js +6 -0
- package/dist/local-auth/admin/web.d.ts +5 -0
- package/dist/local-auth/admin/web.js +39 -0
- package/dist/local-auth/constants/model-names.d.ts +23 -0
- package/dist/local-auth/constants/model-names.js +23 -0
- package/dist/local-auth/core/common.d.ts +6 -0
- package/dist/local-auth/core/common.js +20 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts +5 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.js +63 -0
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +13 -0
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js +40 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js +20 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.ts +18 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +122 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +82 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +327 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +18 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +30 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +95 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +87 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +45 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +46 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +372 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +140 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +17 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +18 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +21 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.js +24 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/email-verification.mutations.ts +35 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +39 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +55 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +76 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +95 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +24 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +87 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +144 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +38 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +165 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +244 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +71 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +226 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +358 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +44 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js +48 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +100 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.d.ts +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-paths.js +26 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +42 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.js +59 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +63 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.js +42 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.js +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.js +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/account-verification.email.tsx +55 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.js +12 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-changed.email.tsx +44 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.js +14 -0
- package/dist/local-auth/core/generators/auth-email-templates/templates/src/emails/auth/password-reset.email.tsx +55 -0
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +57 -0
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +32 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +93 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +14 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +26 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +35 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +45 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +29 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +37 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +71 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +50 -0
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-hooks/index.js +3 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +30 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +33 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +16 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +32 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +15 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +16 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +179 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +115 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +458 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +25 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +37 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +160 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +120 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +36 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +40 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +402 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +207 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +4 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +7 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.d.ts +6 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.js +18 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.ts +22 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts +8 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js +16 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.ts +21 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.js +23 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-roles.mutations.ts +26 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +19 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +25 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +17 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +24 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +36 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +43 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.js +106 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts +146 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js +40 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.ts +54 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts +42 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +191 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +262 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js +38 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.ts +42 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +279 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +65 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +1575 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +18 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +28 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +277 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +62 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +21 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +30 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +2323 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +120 -0
- package/dist/local-auth/core/generators/auth-routes/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-routes/index.js +3 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.d.ts +10 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.js +11 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/-constants.ts +12 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +60 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +127 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +100 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +187 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +75 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +149 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +153 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +292 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +106 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +206 -0
- package/dist/local-auth/core/generators/index.d.ts +10 -0
- package/dist/local-auth/core/generators/index.js +10 -0
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts +9 -0
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.js +31 -0
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +568 -0
- package/dist/local-auth/core/generators/react-session/generated/index.js +11 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +13 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js +25 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +282 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +51 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +21 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +30 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +547 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +35 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +301 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.js +48 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +72 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +99 -0
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +58 -0
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +103 -0
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +122 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +90 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +9 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js +24 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +50 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js +46 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +39 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +20 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts +2 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.js +2 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +58 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +61 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts +3 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +33 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +45 -0
- package/dist/local-auth/core/node.d.ts +5 -0
- package/dist/local-auth/core/node.js +76 -0
- package/dist/local-auth/core/schema/models.d.ts +3 -0
- package/dist/local-auth/core/schema/models.js +281 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts +9 -0
- package/dist/local-auth/core/schema/plugin-definition.js +10 -0
- package/dist/local-auth/core/schema/schema-issue-checker.d.ts +3 -0
- package/dist/local-auth/core/schema/schema-issue-checker.js +21 -0
- package/dist/local-auth/core/web.d.ts +6 -0
- package/dist/local-auth/core/web.js +26 -0
- package/dist/local-auth/index.d.ts +2 -0
- package/dist/local-auth/index.js +2 -0
- package/dist/local-auth/plugin.json +14 -0
- package/dist/local-auth/static/icon.svg +1 -0
- package/dist/placeholder-auth/constants/model-names.d.ts +4 -0
- package/dist/placeholder-auth/constants/model-names.js +4 -0
- package/dist/placeholder-auth/core/common.d.ts +2 -5
- package/dist/placeholder-auth/core/common.js +11 -20
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +21 -29
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +3 -12
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +0 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +0 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts +1 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js +2 -14
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +3 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +0 -15
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +7 -32
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +4 -6
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +1 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +6 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +10 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +8 -5
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts +3 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +64 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.js +44 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts +5 -21
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js +17 -26
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.ts +21 -31
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts +1 -1
- package/dist/placeholder-auth/core/node.d.ts +3 -3
- package/dist/placeholder-auth/core/node.js +11 -17
- package/dist/placeholder-auth/core/schema/models.d.ts +2 -5
- package/dist/placeholder-auth/core/schema/models.js +46 -28
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +2 -79
- package/dist/placeholder-auth/core/schema/plugin-definition.js +2 -15
- package/dist/placeholder-auth/core/web.d.ts +3 -3
- package/dist/placeholder-auth/core/web.js +16 -6
- package/dist/placeholder-auth/plugin.json +10 -0
- package/dist/web/assets/_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-DdyPR8Y-.js +242 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-BfSk5vRC.js +384 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-DZIcwf2B.js +125 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CXGct_48.js +80678 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-Ci5_qYaj.js +7380 -0
- package/dist/web/assets/_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js +13567 -0
- package/dist/web/assets/arduino-BP2nYunF.js +21 -0
- package/dist/web/assets/auth-8qJtXAgU.js +1 -0
- package/dist/web/assets/bash-Zh_IyzBN.js +192 -0
- package/dist/web/assets/basic-3mvohyEL.js +28 -0
- package/dist/web/assets/c-C7Ey31hW.js +74 -0
- package/dist/web/assets/clike-D9YNFwtw.js +41 -0
- package/dist/web/assets/common-23-wvKrM.js +39 -0
- package/dist/web/assets/common-B-NI9TR-.js +37 -0
- package/dist/web/assets/common-BBriDRRy.js +63 -0
- package/dist/web/assets/common-BvU-7KsV.js +39 -0
- package/dist/web/assets/common-DBBUvtGu.js +37 -0
- package/dist/web/assets/common-eFh2vwGb.js +18 -0
- package/dist/web/assets/cpp-_RjA_yNA.js +82 -0
- package/dist/web/assets/csharp-0LZzOc6Q.js +301 -0
- package/dist/web/assets/css-D7TbgetL.js +70 -0
- package/dist/web/assets/diff-CtSa_15w.js +54 -0
- package/dist/web/assets/dist-BjxypexQ.js +18953 -0
- package/dist/web/assets/dist-SBfmsOB2.js +3576 -0
- package/dist/web/assets/get-auth-plugin-definition-x8oAsN1R.js +14 -0
- package/dist/web/assets/go-CzER04EZ.js +36 -0
- package/dist/web/assets/hostInit-oh7k6PLP.js +99 -0
- package/dist/web/assets/index-D-gGyBWJ.js +2 -0
- package/dist/web/assets/ini-CU-wHLTy.js +51 -0
- package/dist/web/assets/java-HAvRESj1.js +116 -0
- package/dist/web/assets/javascript-BVAr0eZH.js +124 -0
- package/dist/web/assets/json-DN8T4yFI.js +38 -0
- package/dist/web/assets/kotlin-DkCMjTKK.js +83 -0
- package/dist/web/assets/less-ZXX1tgaG.js +42 -0
- package/dist/web/assets/lua-D9bD4wrb.js +28 -0
- package/dist/web/assets/makefile-CKoRpler.js +40 -0
- package/dist/web/assets/markdown-_2_uVr2L.js +278 -0
- package/dist/web/assets/markup-BVZ8HhdW.js +176 -0
- package/dist/web/assets/markup-templating-BDIRuVJH.js +94 -0
- package/dist/web/assets/mf-entry-bootstrap-0-f953ebce.js +35 -0
- package/dist/web/assets/model-names-BluImOzu.js +27 -0
- package/dist/web/assets/model-names-CUS5rSei.js +12 -0
- package/dist/web/assets/model-utils-dNFTOjqi.js +1599 -0
- package/dist/web/assets/models-BpslIbU7.js +304 -0
- package/dist/web/assets/models-CKab4MTC.js +285 -0
- package/dist/web/assets/objectivec-DPgB68It.js +25 -0
- package/dist/web/assets/perl-Cul_ma_h.js +92 -0
- package/dist/web/assets/php-JTON0zp9.js +298 -0
- package/dist/web/assets/plugin-definition-8Exesd6T.js +78 -0
- package/dist/web/assets/plugin-definition-ChBrbazJ.js +11 -0
- package/dist/web/assets/python-CURlmZ7M.js +73 -0
- package/dist/web/assets/r-8lr7pbGm.js +30 -0
- package/dist/web/assets/regex-CxQ7DXCx.js +96 -0
- package/dist/web/assets/rolldown-runtime-FZ4Itg2g.js +42 -0
- package/dist/web/assets/ruby-BoFHz67P.js +175 -0
- package/dist/web/assets/rust-CpZXpaj0.js +107 -0
- package/dist/web/assets/sass-DG0YAnL7.js +65 -0
- package/dist/web/assets/scss-BDRIqhak.js +70 -0
- package/dist/web/assets/sql-C-bL8_gT.js +40 -0
- package/dist/web/assets/styles-Cc26Bbxc.css +120 -0
- package/dist/web/assets/styles-Cuq4wgvD.js +176 -0
- package/dist/web/assets/swift-rQ52kfab.js +107 -0
- package/dist/web/assets/typescript-CDkIWcT8.js +57 -0
- package/dist/web/assets/vbnet-_PL7-T9d.js +32 -0
- package/dist/web/assets/virtualExposes-BwIds34r.js +2 -0
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-RJNeuwba.js +259 -0
- package/dist/web/assets/virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-RzPgl37a.js +129 -0
- package/dist/web/assets/virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DM6Ir1_S.js +203 -0
- package/dist/web/assets/vite-preload-helper-iIio8xkS.js +67 -0
- package/dist/web/assets/web-BZd3bM0n.js +410 -0
- package/dist/web/assets/web-BgWG7dYl.js +123 -0
- package/dist/web/assets/web-CXHw8SK7.js +118 -0
- package/dist/web/assets/web-CnB-sqCR.js +357 -0
- package/dist/web/assets/web-DHv2aVpi.js +106 -0
- package/dist/web/assets/web-DNrWXjpS.js +46 -0
- package/dist/web/assets/web-D_H-MoGI.js +46 -0
- package/dist/web/assets/workerBundle-GFUata9j.js +10 -0
- package/dist/web/assets/yaml-C9m3vuV5.js +90 -0
- package/dist/web/index.html +2 -2
- package/dist/web/remoteEntry.js +2 -0
- package/dist/web/remoteEntry.ssr.js +43 -0
- package/package.json +53 -47
- package/dist/auth/core/common.d.ts.map +0 -1
- package/dist/auth/core/common.js.map +0 -1
- package/dist/auth/core/components/auth-definition-editor.d.ts.map +0 -1
- package/dist/auth/core/components/auth-definition-editor.js.map +0 -1
- package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +0 -28
- package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js +0 -43
- package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-apollo/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-apollo/index.js.map +0 -1
- package/dist/auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js +0 -15
- package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js.map +0 -1
- package/dist/auth/core/generators/auth-apollo/templates/session-error-link.ts +0 -16
- package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +0 -73
- package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js +0 -40
- package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/index.d.ts +0 -124
- package/dist/auth/core/generators/auth-email-password/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/index.js +0 -11
- package/dist/auth/core/generators/auth-email-password/generated/index.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts +0 -14
- package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/template-paths.js +0 -26
- package/dist/auth/core/generators/auth-email-password/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts +0 -58
- package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js +0 -55
- package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +0 -25
- package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js +0 -32
- package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts +0 -105
- package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js +0 -58
- package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/index.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +0 -2
- package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +0 -3
- package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +0 -3
- package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +0 -33
- package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +0 -44
- package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +0 -21
- package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +0 -74
- package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +0 -121
- package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +0 -61
- package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js +0 -33
- package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/index.d.ts +0 -127
- package/dist/auth/core/generators/auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/index.js +0 -11
- package/dist/auth/core/generators/auth-hooks/generated/index.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts +0 -17
- package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-paths.js +0 -27
- package/dist/auth/core/generators/auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts +0 -47
- package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js +0 -50
- package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -16
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -27
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts +0 -131
- package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js +0 -83
- package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/index.d.ts +0 -2
- package/dist/auth/core/generators/auth-hooks/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/index.js +0 -2
- package/dist/auth/core/generators/auth-hooks/index.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -18
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +0 -22
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +0 -39
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +0 -2
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -5
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +0 -27
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +0 -29
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +0 -8
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -12
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +0 -16
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +0 -15
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +0 -16
- package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts +0 -94
- package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/auth-module.generator.js +0 -70
- package/dist/auth/core/generators/auth-module/auth-module.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/index.d.ts +0 -182
- package/dist/auth/core/generators/auth-module/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/index.js +0 -11
- package/dist/auth/core/generators/auth-module/generated/index.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts +0 -19
- package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-paths.js +0 -29
- package/dist/auth/core/generators/auth-module/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts +0 -80
- package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-renderers.js +0 -79
- package/dist/auth/core/generators/auth-module/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts +0 -22
- package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js +0 -31
- package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts +0 -134
- package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/typed-templates.js +0 -113
- package/dist/auth/core/generators/auth-module/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-module/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/index.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +0 -17
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +0 -23
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +0 -18
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +0 -22
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +0 -19
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +0 -23
- package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts +0 -43
- package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js +0 -180
- package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.ts +0 -250
- package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js +0 -38
- package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.ts +0 -42
- package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts +0 -176
- package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/auth-routes.generator.js +0 -38
- package/dist/auth/core/generators/auth-routes/auth-routes.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/index.d.ts +0 -495
- package/dist/auth/core/generators/auth-routes/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/index.js +0 -9
- package/dist/auth/core/generators/auth-routes/generated/index.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts +0 -15
- package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-paths.js +0 -25
- package/dist/auth/core/generators/auth-routes/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts +0 -176
- package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-renderers.js +0 -55
- package/dist/auth/core/generators/auth-routes/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/typed-templates.d.ts +0 -638
- package/dist/auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/typed-templates.js +0 -57
- package/dist/auth/core/generators/auth-routes/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/index.d.ts +0 -2
- package/dist/auth/core/generators/auth-routes/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/index.js +0 -2
- package/dist/auth/core/generators/auth-routes/index.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +0 -2
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js +0 -85
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +0 -161
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/queries.gql +0 -15
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +0 -2
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js +0 -77
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +0 -148
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +0 -2
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +0 -1
- package/dist/auth/core/generators/index.d.ts +0 -8
- package/dist/auth/core/generators/index.d.ts.map +0 -1
- package/dist/auth/core/generators/index.js +0 -8
- package/dist/auth/core/generators/index.js.map +0 -1
- package/dist/auth/core/generators/react-auth/index.d.ts.map +0 -1
- package/dist/auth/core/generators/react-auth/index.js.map +0 -1
- package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts +0 -9
- package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/react-auth/react-auth.generator.js +0 -31
- package/dist/auth/core/generators/react-auth/react-auth.generator.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/index.d.ts +0 -74
- package/dist/auth/core/generators/react-session/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/index.js +0 -11
- package/dist/auth/core/generators/react-session/generated/index.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-paths.d.ts +0 -16
- package/dist/auth/core/generators/react-session/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-paths.js +0 -26
- package/dist/auth/core/generators/react-session/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts +0 -27
- package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-renderers.js +0 -49
- package/dist/auth/core/generators/react-session/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts +0 -64
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.js +0 -42
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts +0 -46
- package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/typed-templates.js +0 -82
- package/dist/auth/core/generators/react-session/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/react-session/index.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/index.js.map +0 -1
- package/dist/auth/core/generators/react-session/react-session.generator.d.ts +0 -58
- package/dist/auth/core/generators/react-session/react-session.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/react-session.generator.js +0 -54
- package/dist/auth/core/generators/react-session/react-session.generator.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts +0 -7
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.gql +0 -6
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js +0 -25
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.tsx +0 -28
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js +0 -18
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +0 -45
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts +0 -12
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js +0 -15
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.ts +0 -30
- package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +0 -79
- package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js +0 -133
- package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.ts +0 -153
- package/dist/auth/core/index.d.ts.map +0 -1
- package/dist/auth/core/index.js.map +0 -1
- package/dist/auth/core/node.d.ts.map +0 -1
- package/dist/auth/core/node.js.map +0 -1
- package/dist/auth/core/schema/models.d.ts +0 -9
- package/dist/auth/core/schema/models.d.ts.map +0 -1
- package/dist/auth/core/schema/models.js +0 -203
- package/dist/auth/core/schema/models.js.map +0 -1
- package/dist/auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/auth/core/web.d.ts.map +0 -1
- package/dist/auth/core/web.js.map +0 -1
- package/dist/auth/index.d.ts.map +0 -1
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/metadata.json +0 -8
- package/dist/auth0/constants/packages.d.ts +0 -6
- package/dist/auth0/constants/packages.d.ts.map +0 -1
- package/dist/auth0/constants/packages.js +0 -6
- package/dist/auth0/constants/packages.js.map +0 -1
- package/dist/auth0/core/common.d.ts +0 -7
- package/dist/auth0/core/common.d.ts.map +0 -1
- package/dist/auth0/core/common.js +0 -28
- package/dist/auth0/core/common.js.map +0 -1
- package/dist/auth0/core/components/auth-definition-editor.d.ts +0 -5
- package/dist/auth0/core/components/auth-definition-editor.d.ts.map +0 -1
- package/dist/auth0/core/components/auth-definition-editor.js +0 -61
- package/dist/auth0/core/components/auth-definition-editor.js.map +0 -1
- package/dist/auth0/core/node.d.ts +0 -5
- package/dist/auth0/core/node.d.ts.map +0 -1
- package/dist/auth0/core/node.js +0 -49
- package/dist/auth0/core/node.js.map +0 -1
- package/dist/auth0/core/schema/migrations.d.ts +0 -3
- package/dist/auth0/core/schema/migrations.d.ts.map +0 -1
- package/dist/auth0/core/schema/migrations.js +0 -19
- package/dist/auth0/core/schema/migrations.js.map +0 -1
- package/dist/auth0/core/schema/models.d.ts +0 -6
- package/dist/auth0/core/schema/models.d.ts.map +0 -1
- package/dist/auth0/core/schema/models.js +0 -39
- package/dist/auth0/core/schema/models.js.map +0 -1
- package/dist/auth0/core/schema/plugin-definition.d.ts +0 -83
- package/dist/auth0/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/auth0/core/schema/plugin-definition.js +0 -17
- package/dist/auth0/core/schema/plugin-definition.js.map +0 -1
- package/dist/auth0/core/web.d.ts +0 -6
- package/dist/auth0/core/web.d.ts.map +0 -1
- package/dist/auth0/core/web.js +0 -14
- package/dist/auth0/core/web.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +0 -75
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js +0 -120
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +0 -105
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.js +0 -11
- package/dist/auth0/generators/fastify/auth0-module/generated/index.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts +0 -13
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js +0 -23
- package/dist/auth0/generators/fastify/auth0-module/generated/template-paths.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +0 -55
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js +0 -52
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts +0 -10
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js +0 -23
- package/dist/auth0/generators/fastify/auth0-module/generated/ts-import-providers.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +0 -43
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js +0 -28
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/index.d.ts +0 -2
- package/dist/auth0/generators/fastify/auth0-module/index.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/index.js +0 -2
- package/dist/auth0/generators/fastify/auth0-module/index.js.map +0 -1
- package/dist/auth0/generators/fastify/auth0-module/templates/module/services/management.ts +0 -22
- package/dist/auth0/generators/fastify/auth0-module/templates/module/services/user-session.service.ts +0 -101
- package/dist/auth0/generators/fastify/index.d.ts +0 -2
- package/dist/auth0/generators/fastify/index.d.ts.map +0 -1
- package/dist/auth0/generators/fastify/index.js +0 -2
- package/dist/auth0/generators/fastify/index.js.map +0 -1
- package/dist/auth0/generators/index.d.ts.map +0 -1
- package/dist/auth0/generators/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts +0 -10
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js +0 -41
- package/dist/auth0/generators/react/auth0-apollo/auth0-apollo.generator.js.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/index.d.ts +0 -2
- package/dist/auth0/generators/react/auth0-apollo/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/index.js +0 -2
- package/dist/auth0/generators/react/auth0-apollo/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-apollo/templates/auth-link.ts +0 -11
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +0 -40
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +0 -40
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +0 -72
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.js +0 -11
- package/dist/auth0/generators/react/auth0-hooks/generated/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts +0 -16
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js +0 -26
- package/dist/auth0/generators/react/auth0-hooks/generated/template-paths.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +0 -29
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +0 -47
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +0 -16
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +0 -27
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +0 -52
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +0 -69
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/index.d.ts +0 -2
- package/dist/auth0/generators/react/auth0-hooks/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/index.js +0 -2
- package/dist/auth0/generators/react/auth0-hooks/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.gql +0 -10
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-current-user.ts +0 -29
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-log-out.ts +0 -14
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-session.ts +0 -23
- package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts +0 -143
- package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js +0 -26
- package/dist/auth0/generators/react/auth0-pages/auth0-pages.generator.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts +0 -278
- package/dist/auth0/generators/react/auth0-pages/generated/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/index.js +0 -9
- package/dist/auth0/generators/react/auth0-pages/generated/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts +0 -12
- package/dist/auth0/generators/react/auth0-pages/generated/template-paths.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js +0 -20
- package/dist/auth0/generators/react/auth0-pages/generated/template-paths.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts +0 -144
- package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js +0 -37
- package/dist/auth0/generators/react/auth0-pages/generated/template-renderers.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts +0 -263
- package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js +0 -18
- package/dist/auth0/generators/react/auth0-pages/generated/typed-templates.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/index.d.ts +0 -2
- package/dist/auth0/generators/react/auth0-pages/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/index.js +0 -2
- package/dist/auth0/generators/react/auth0-pages/index.js.map +0 -1
- package/dist/auth0/generators/react/auth0-pages/templates/routes/login.tsx +0 -31
- package/dist/auth0/generators/react/index.d.ts +0 -5
- package/dist/auth0/generators/react/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/index.js +0 -5
- package/dist/auth0/generators/react/index.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/index.d.ts +0 -286
- package/dist/auth0/generators/react/react-auth0/generated/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/index.js +0 -9
- package/dist/auth0/generators/react/react-auth0/generated/index.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts +0 -12
- package/dist/auth0/generators/react/react-auth0/generated/template-paths.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/template-paths.js +0 -22
- package/dist/auth0/generators/react/react-auth0/generated/template-paths.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts +0 -149
- package/dist/auth0/generators/react/react-auth0/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js +0 -39
- package/dist/auth0/generators/react/react-auth0/generated/template-renderers.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts +0 -136
- package/dist/auth0/generators/react/react-auth0/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js +0 -17
- package/dist/auth0/generators/react/react-auth0/generated/typed-templates.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/index.d.ts +0 -2
- package/dist/auth0/generators/react/react-auth0/index.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/index.js +0 -2
- package/dist/auth0/generators/react/react-auth0/index.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +0 -178
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +0 -1
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js +0 -107
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.js.map +0 -1
- package/dist/auth0/generators/react/react-auth0/templates/src/app/auth-loaded-gate.tsx +0 -78
- package/dist/auth0/metadata.json +0 -8
- package/dist/auth0/static/icon.svg +0 -7
- package/dist/common/compiler/generator-creators.d.ts +0 -18
- package/dist/common/compiler/generator-creators.d.ts.map +0 -1
- package/dist/common/compiler/generator-creators.js +0 -34
- package/dist/common/compiler/generator-creators.js.map +0 -1
- package/dist/common/compiler/index.d.ts +0 -2
- package/dist/common/compiler/index.d.ts.map +0 -1
- package/dist/common/compiler/index.js +0 -2
- package/dist/common/compiler/index.js.map +0 -1
- package/dist/common/index.d.ts +0 -3
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js +0 -3
- package/dist/common/index.js.map +0 -1
- package/dist/common/roles/components/index.d.ts +0 -2
- package/dist/common/roles/components/index.d.ts.map +0 -1
- package/dist/common/roles/components/index.js +0 -2
- package/dist/common/roles/components/index.js.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-dialog.d.ts +0 -14
- package/dist/common/roles/components/role-editor-form/role-dialog.d.ts.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-dialog.js +0 -29
- package/dist/common/roles/components/role-editor-form/role-dialog.js.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts +0 -10
- package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-editor-form.js +0 -49
- package/dist/common/roles/components/role-editor-form/role-editor-form.js.map +0 -1
- package/dist/common/roles/constants.d.ts.map +0 -1
- package/dist/common/roles/constants.js +0 -25
- package/dist/common/roles/constants.js.map +0 -1
- package/dist/common/roles/index.d.ts +0 -4
- package/dist/common/roles/index.d.ts.map +0 -1
- package/dist/common/roles/index.js +0 -4
- package/dist/common/roles/index.js.map +0 -1
- package/dist/common/roles/schema.d.ts +0 -84
- package/dist/common/roles/schema.d.ts.map +0 -1
- package/dist/common/roles/schema.js +0 -44
- package/dist/common/roles/schema.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/placeholder-auth/core/common.d.ts.map +0 -1
- package/dist/placeholder-auth/core/common.js.map +0 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +0 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +0 -1
- package/dist/placeholder-auth/core/generators/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -14
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.gql +0 -10
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js +0 -23
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-current-user.ts +0 -34
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts +0 -45
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js +0 -27
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-paths.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/index.js.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.d.ts.map +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-react-auth/react-auth.generator.js.map +0 -1
- package/dist/placeholder-auth/core/index.d.ts.map +0 -1
- package/dist/placeholder-auth/core/index.js.map +0 -1
- package/dist/placeholder-auth/core/node.d.ts.map +0 -1
- package/dist/placeholder-auth/core/node.js.map +0 -1
- package/dist/placeholder-auth/core/schema/models.d.ts.map +0 -1
- package/dist/placeholder-auth/core/schema/models.js.map +0 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +0 -1
- package/dist/placeholder-auth/core/web.d.ts.map +0 -1
- package/dist/placeholder-auth/core/web.js.map +0 -1
- package/dist/placeholder-auth/index.d.ts.map +0 -1
- package/dist/placeholder-auth/index.js.map +0 -1
- package/dist/placeholder-auth/metadata.json +0 -9
- package/dist/web/assets/__federation_expose_auth0CoreCommon-CSWdt8d_.js +0 -56
- package/dist/web/assets/__federation_expose_auth0CoreCommon-CSWdt8d_.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreWeb-DjVw47sM.js +0 -201
- package/dist/web/assets/__federation_expose_auth0CoreWeb-DjVw47sM.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-CvHJZFIq.js +0 -36
- package/dist/web/assets/__federation_expose_authCoreCommon-CvHJZFIq.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreWeb-CrFEmZp3.js +0 -401
- package/dist/web/assets/__federation_expose_authCoreWeb-CrFEmZp3.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js +0 -39
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CmkiEJ6z.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CpxfTdxv.js +0 -197
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CpxfTdxv.js.map +0 -1
- package/dist/web/assets/__federation_fn_import-CGvRdRVe.js +0 -421
- package/dist/web/assets/__federation_fn_import-CGvRdRVe.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-D1kBtwsm.js +0 -341
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-D1kBtwsm.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B7442OYh.js +0 -10289
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-B7442OYh.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-X318M5Ml.js +0 -23637
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-X318M5Ml.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-dom-Bwq4pLax.js +0 -250
- package/dist/web/assets/__federation_shared_react-dom-Bwq4pLax.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-uocnGSER.js +0 -7
- package/dist/web/assets/__federation_shared_react-uocnGSER.js.map +0 -1
- package/dist/web/assets/__federation_shared_zod-BK7IELHt.js +0 -4380
- package/dist/web/assets/__federation_shared_zod-BK7IELHt.js.map +0 -1
- package/dist/web/assets/index-B1hOKVPw.js +0 -574
- package/dist/web/assets/index-B1hOKVPw.js.map +0 -1
- package/dist/web/assets/index-l0sNRNKZ.js.map +0 -1
- package/dist/web/assets/index-ydDQKauE.js +0 -101
- package/dist/web/assets/index-ydDQKauE.js.map +0 -1
- package/dist/web/assets/index.esm-DYWXRkn-.js +0 -2627
- package/dist/web/assets/index.esm-DYWXRkn-.js.map +0 -1
- package/dist/web/assets/model-merger-BVBtbNAj.js +0 -1708
- package/dist/web/assets/model-merger-BVBtbNAj.js.map +0 -1
- package/dist/web/assets/plugin-definition-Bdhuga1j.js +0 -36
- package/dist/web/assets/plugin-definition-Bdhuga1j.js.map +0 -1
- package/dist/web/assets/plugin-definition-C9d7ykhX.js +0 -24
- package/dist/web/assets/plugin-definition-C9d7ykhX.js.map +0 -1
- package/dist/web/assets/plugin-definition-QzgXWr1I.js +0 -24
- package/dist/web/assets/plugin-definition-QzgXWr1I.js.map +0 -1
- package/dist/web/assets/react-B23vKoD0.js +0 -47
- package/dist/web/assets/react-B23vKoD0.js.map +0 -1
- package/dist/web/assets/remoteEntry.js +0 -66
- package/dist/web/assets/remoteEntry.js.map +0 -1
- package/dist/web/assets/role-editor-form-BkcoVwtU.js +0 -319
- package/dist/web/assets/role-editor-form-BkcoVwtU.js.map +0 -1
- package/dist/web/assets/style-ZUYizAnf.css +0 -93
- package/dist/web/assets/styles-Dfjm_ApH.js +0 -201
- package/dist/web/assets/styles-Dfjm_ApH.js.map +0 -1
- package/dist/web-export.js.map +0 -1
- package/manifest.json +0 -4
- /package/dist/{common → auth/core/schema}/roles/constants.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/generators/index.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/generators/index.js +0 -0
- /package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/templates/src/hooks/use-required-user-id.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.tsx +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-auth/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-auth/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-session/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-session/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-session/templates/src/app/user-session-provider.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/index.js +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { authRoleEntityType } from '@baseplate-dev/project-builder-lib';
|
|
3
|
+
import { Badge, Button, RecordView, RecordViewActions, RecordViewItem, RecordViewItemList, SectionListSection, SectionListSectionContent, SectionListSectionDescription, SectionListSectionHeader, SectionListSectionTitle, useConfirmDialog, } from '@baseplate-dev/ui-components';
|
|
4
|
+
import { useFieldArray } from '@hookform/lenses/rhf';
|
|
5
|
+
import { useState } from 'react';
|
|
6
|
+
import { useWatch } from 'react-hook-form';
|
|
7
|
+
import { MdAdd, MdDeleteOutline, MdEdit } from 'react-icons/md';
|
|
8
|
+
import { RoleDialog } from './role-dialog.js';
|
|
9
|
+
export function RoleEditorForm({ className, control, }) {
|
|
10
|
+
const { requestConfirm } = useConfirmDialog();
|
|
11
|
+
const { append, update, remove } = useFieldArray({
|
|
12
|
+
control,
|
|
13
|
+
name: 'roles',
|
|
14
|
+
});
|
|
15
|
+
const [roleToEdit, setRoleToEdit] = useState();
|
|
16
|
+
const [isEditing, setIsEditing] = useState(false);
|
|
17
|
+
const roles = useWatch({ control, name: 'roles' });
|
|
18
|
+
function handleSaveRole(newRole) {
|
|
19
|
+
const existingIndex = roles.findIndex((role) => role.id === newRole.id);
|
|
20
|
+
if (existingIndex === -1) {
|
|
21
|
+
append(newRole);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
update(existingIndex, newRole);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function handleDeleteRole(roleIdx) {
|
|
28
|
+
const role = roles[roleIdx];
|
|
29
|
+
if (!role)
|
|
30
|
+
return;
|
|
31
|
+
requestConfirm({
|
|
32
|
+
title: 'Delete Role',
|
|
33
|
+
content: `Are you sure you want to delete the role "${role.name}"?`,
|
|
34
|
+
onConfirm: () => {
|
|
35
|
+
remove(roleIdx);
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return (_jsxs(SectionListSection, { className: className, children: [_jsxs(SectionListSectionHeader, { children: [_jsx(SectionListSectionTitle, { children: "User Roles" }), _jsx(SectionListSectionDescription, { children: "Define roles for your application. Default roles are protected and cannot be removed." })] }), _jsxs(SectionListSectionContent, { className: "auth:space-y-4", children: [roles.map((role, roleIdx) => (_jsxs(RecordView, { children: [_jsxs(RecordViewItemList, { children: [_jsx(RecordViewItem, { title: "Name", children: _jsx("div", { className: "auth:flex auth:items-center auth:gap-2", children: _jsx("span", { children: role.name }) }) }), _jsx(RecordViewItem, { title: "Description", children: role.comment.trim() || (_jsx("span", { className: "auth:text-muted-foreground", children: "No description" })) })] }), _jsxs(RecordViewActions, { children: [role.builtIn && _jsx(Badge, { variant: "secondary", children: "Default Role" }), !role.builtIn && (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", size: "icon", title: "Edit", "aria-label": "Edit role", onClick: () => {
|
|
40
|
+
setRoleToEdit(role);
|
|
41
|
+
setIsEditing(true);
|
|
42
|
+
}, children: _jsx(MdEdit, {}) }), _jsx(Button, { variant: "ghostDestructive", size: "icon", title: "Delete", "aria-label": "Delete role", onClick: () => {
|
|
43
|
+
handleDeleteRole(roleIdx);
|
|
44
|
+
}, children: _jsx(MdDeleteOutline, {}) })] }))] })] }, role.id))), _jsx(RoleDialog, { open: isEditing, onOpenChange: setIsEditing, role: roleToEdit, isNew: roleToEdit ? !roles.some((r) => r.id === roleToEdit.id) : true, onSave: handleSaveRole }), _jsxs(Button, { variant: "secondary", size: "sm", onClick: () => {
|
|
45
|
+
setRoleToEdit({
|
|
46
|
+
id: authRoleEntityType.generateNewId(),
|
|
47
|
+
name: '',
|
|
48
|
+
comment: '',
|
|
49
|
+
builtIn: false,
|
|
50
|
+
});
|
|
51
|
+
setIsEditing(true);
|
|
52
|
+
}, children: [_jsx(MdAdd, {}), "Add Role"] })] })] }));
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=role-editor-form.js.map
|
package/dist/auth/core/node.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
2
|
-
|
|
3
|
-
}
|
|
1
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
2
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
3
|
+
}>;
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=node.d.ts.map
|
package/dist/auth/core/node.js
CHANGED
|
@@ -1,58 +1,47 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { appCompilerSpec, backendAppEntryType,
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { authHooksGenerator } from './generators/auth-hooks/auth-hooks.generator.js';
|
|
7
|
-
import { authRoutesGenerator } from './generators/auth-routes/auth-routes.generator.js';
|
|
8
|
-
import { authModuleGenerator, reactAuthGenerator } from './generators/index.js';
|
|
9
|
-
import { reactSessionGenerator } from './generators/react-session/react-session.generator.js';
|
|
10
|
-
export default createPlatformPluginExport({
|
|
1
|
+
import { authContextGenerator, authPluginGenerator, authRolesGenerator, pothosAuthGenerator, prismaAuthorizerUtilsGenerator, prismaQueryFilterUtilsGenerator, userSessionTypesGenerator, } from '@baseplate-dev/fastify-generators';
|
|
2
|
+
import { appCompilerSpec, backendAppEntryType, createPluginModule, PluginUtils, webAppEntryType, } from '@baseplate-dev/project-builder-lib';
|
|
3
|
+
import { authErrorsGenerator, authIdentifyGenerator, } from '@baseplate-dev/react-generators';
|
|
4
|
+
export default createPluginModule({
|
|
5
|
+
name: 'node',
|
|
11
6
|
dependencies: {
|
|
12
7
|
appCompiler: appCompilerSpec,
|
|
13
8
|
},
|
|
14
|
-
|
|
15
|
-
initialize: ({ appCompiler }, { pluginId }) => {
|
|
9
|
+
initialize: ({ appCompiler }, { pluginKey }) => {
|
|
16
10
|
// register backend compiler
|
|
17
|
-
appCompiler.
|
|
18
|
-
|
|
11
|
+
appCompiler.compilers.push({
|
|
12
|
+
pluginKey,
|
|
19
13
|
appType: backendAppEntryType,
|
|
20
|
-
compile: ({ projectDefinition,
|
|
21
|
-
const auth = PluginUtils.
|
|
14
|
+
compile: ({ projectDefinition, appCompiler }) => {
|
|
15
|
+
const auth = PluginUtils.configByKeyOrThrow(projectDefinition, pluginKey);
|
|
22
16
|
appCompiler.addChildrenToFeature(auth.authFeatureRef, {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
module: authEmailPasswordGenerator({}),
|
|
33
|
-
hasher: passwordHasherServiceGenerator({}),
|
|
34
|
-
},
|
|
17
|
+
authContext: authContextGenerator({}),
|
|
18
|
+
authPlugin: authPluginGenerator({}),
|
|
19
|
+
authRoles: authRolesGenerator({
|
|
20
|
+
roles: auth.roles.map((r) => ({
|
|
21
|
+
name: r.name,
|
|
22
|
+
comment: r.comment,
|
|
23
|
+
builtIn: r.builtIn,
|
|
24
|
+
autoAssigned: r.autoAssigned,
|
|
25
|
+
})),
|
|
35
26
|
}),
|
|
27
|
+
userSessionTypes: userSessionTypesGenerator({}),
|
|
28
|
+
});
|
|
29
|
+
appCompiler.addRootChildren({
|
|
30
|
+
pothosAuth: pothosAuthGenerator({}),
|
|
31
|
+
authorizerUtils: prismaAuthorizerUtilsGenerator({}),
|
|
32
|
+
queryFilterUtils: prismaQueryFilterUtilsGenerator({}),
|
|
36
33
|
});
|
|
37
|
-
appCompiler.addRootChildren(createCommonBackendAuthRootGenerators());
|
|
38
34
|
},
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
appCompiler.registerAppCompiler({
|
|
42
|
-
pluginId,
|
|
35
|
+
}, {
|
|
36
|
+
pluginKey,
|
|
43
37
|
appType: webAppEntryType,
|
|
44
38
|
compile: ({ appCompiler }) => {
|
|
45
39
|
appCompiler.addRootChildren({
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
reactAuth: reactAuthGenerator({}),
|
|
49
|
-
authHooks: authHooksGenerator({}),
|
|
50
|
-
reactSession: reactSessionGenerator({}),
|
|
51
|
-
authRoutes: authRoutesGenerator({}),
|
|
40
|
+
authIdentify: authIdentifyGenerator({}),
|
|
41
|
+
authErrors: authErrorsGenerator({}),
|
|
52
42
|
});
|
|
53
43
|
},
|
|
54
44
|
});
|
|
55
|
-
return {};
|
|
56
45
|
},
|
|
57
46
|
});
|
|
58
47
|
//# sourceMappingURL=node.js.map
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { featureEntityType } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
export const AUTH_PLUGIN_CONFIG_MIGRATIONS = [
|
|
3
|
+
{
|
|
4
|
+
name: 'add-accounts-feature-ref',
|
|
5
|
+
version: 1,
|
|
6
|
+
// Plugin migrations run on raw serialized JSON where withRef fields store
|
|
7
|
+
// feature NAME PATHS (e.g. "accounts/auth"), not IDs. Values must be set to
|
|
8
|
+
// names so deserialization can resolve them to feature IDs.
|
|
9
|
+
migrate: (config, projectDefinition) => {
|
|
10
|
+
const typedConfig = config;
|
|
11
|
+
const def = projectDefinition;
|
|
12
|
+
const features = def.features ?? [];
|
|
13
|
+
// Find or plan to create the three features needed for the new hierarchy:
|
|
14
|
+
// accounts (parent, no code)
|
|
15
|
+
// accounts/auth (auth infrastructure)
|
|
16
|
+
// accounts/users (user models)
|
|
17
|
+
const accountsFeature = features.find((f) => f.name === 'accounts' && !f.parentRef);
|
|
18
|
+
const accountsId = accountsFeature?.id ?? featureEntityType.generateNewId();
|
|
19
|
+
const accountsAuthFeature = features.find((f) => f.name === 'accounts/auth');
|
|
20
|
+
const accountsAuthId = accountsAuthFeature?.id ?? featureEntityType.generateNewId();
|
|
21
|
+
const accountsUsersFeature = features.find((f) => f.name === 'accounts/users');
|
|
22
|
+
const accountsUsersId = accountsUsersFeature?.id ?? featureEntityType.generateNewId();
|
|
23
|
+
return {
|
|
24
|
+
updatedConfig: {
|
|
25
|
+
...typedConfig,
|
|
26
|
+
authFeatureRef: 'accounts/auth',
|
|
27
|
+
accountsFeatureRef: 'accounts/users',
|
|
28
|
+
},
|
|
29
|
+
updateProjectDefinition: (draft) => {
|
|
30
|
+
const draftDef = draft;
|
|
31
|
+
draftDef.features ??= [];
|
|
32
|
+
if (!accountsFeature) {
|
|
33
|
+
draftDef.features.push({ id: accountsId, name: 'accounts' });
|
|
34
|
+
}
|
|
35
|
+
if (!accountsAuthFeature) {
|
|
36
|
+
draftDef.features.push({
|
|
37
|
+
id: accountsAuthId,
|
|
38
|
+
name: 'accounts/auth',
|
|
39
|
+
parentRef: 'accounts',
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
if (!accountsUsersFeature) {
|
|
43
|
+
draftDef.features.push({
|
|
44
|
+
id: accountsUsersId,
|
|
45
|
+
name: 'accounts/users',
|
|
46
|
+
parentRef: 'accounts',
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
//# sourceMappingURL=migrations.js.map
|
|
@@ -1,98 +1,35 @@
|
|
|
1
1
|
import type { def } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
export declare const createAuthPluginDefinitionSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodObject<{
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
userSession: z.ZodEffects<z.ZodString, string, string>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
user: string;
|
|
11
|
-
userAccount: string;
|
|
12
|
-
userRole: string;
|
|
13
|
-
userSession: string;
|
|
14
|
-
}, {
|
|
15
|
-
user: string;
|
|
16
|
-
userAccount: string;
|
|
17
|
-
userRole: string;
|
|
18
|
-
userSession: string;
|
|
19
|
-
}>;
|
|
20
|
-
authFeatureRef: z.ZodEffects<z.ZodString, string, string>;
|
|
21
|
-
roles: z.ZodEffects<z.ZodEffects<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
22
|
-
id: z.ZodString;
|
|
23
|
-
name: z.ZodString;
|
|
24
|
-
comment: z.ZodString;
|
|
25
|
-
builtIn: z.ZodDefault<z.ZodBoolean>;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
4
|
+
implementationPluginKey: z.ZodString;
|
|
5
|
+
authFeatureRef: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
6
|
+
accountsFeatureRef: z.ZodType<string, string, z.core.$ZodTypeInternals<string, string>>;
|
|
7
|
+
roles: z.ZodArray<z.ZodType<{
|
|
27
8
|
id: string;
|
|
28
9
|
name: string;
|
|
29
10
|
comment: string;
|
|
30
11
|
builtIn: boolean;
|
|
12
|
+
autoAssigned: boolean;
|
|
31
13
|
}, {
|
|
32
14
|
id: string;
|
|
33
15
|
name: string;
|
|
34
16
|
comment: string;
|
|
35
17
|
builtIn?: boolean | undefined;
|
|
36
|
-
|
|
18
|
+
autoAssigned?: boolean | undefined;
|
|
19
|
+
}, z.core.$ZodTypeInternals<{
|
|
37
20
|
id: string;
|
|
38
21
|
name: string;
|
|
39
22
|
comment: string;
|
|
40
23
|
builtIn: boolean;
|
|
24
|
+
autoAssigned: boolean;
|
|
41
25
|
}, {
|
|
42
26
|
id: string;
|
|
43
27
|
name: string;
|
|
44
28
|
comment: string;
|
|
45
29
|
builtIn?: boolean | undefined;
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
comment: string;
|
|
50
|
-
builtIn: boolean;
|
|
51
|
-
}[], {
|
|
52
|
-
id: string;
|
|
53
|
-
name: string;
|
|
54
|
-
comment: string;
|
|
55
|
-
builtIn?: boolean | undefined;
|
|
56
|
-
}[]>, {
|
|
57
|
-
id: string;
|
|
58
|
-
name: string;
|
|
59
|
-
comment: string;
|
|
60
|
-
builtIn: boolean;
|
|
61
|
-
}[], {
|
|
62
|
-
id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
comment: string;
|
|
65
|
-
builtIn?: boolean | undefined;
|
|
66
|
-
}[]>;
|
|
67
|
-
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
modelRefs: {
|
|
69
|
-
user: string;
|
|
70
|
-
userAccount: string;
|
|
71
|
-
userRole: string;
|
|
72
|
-
userSession: string;
|
|
73
|
-
};
|
|
74
|
-
authFeatureRef: string;
|
|
75
|
-
roles: {
|
|
76
|
-
id: string;
|
|
77
|
-
name: string;
|
|
78
|
-
comment: string;
|
|
79
|
-
builtIn: boolean;
|
|
80
|
-
}[];
|
|
81
|
-
}, {
|
|
82
|
-
modelRefs: {
|
|
83
|
-
user: string;
|
|
84
|
-
userAccount: string;
|
|
85
|
-
userRole: string;
|
|
86
|
-
userSession: string;
|
|
87
|
-
};
|
|
88
|
-
authFeatureRef: string;
|
|
89
|
-
roles: {
|
|
90
|
-
id: string;
|
|
91
|
-
name: string;
|
|
92
|
-
comment: string;
|
|
93
|
-
builtIn?: boolean | undefined;
|
|
94
|
-
}[];
|
|
95
|
-
}>;
|
|
30
|
+
autoAssigned?: boolean | undefined;
|
|
31
|
+
}>>>;
|
|
32
|
+
}, z.core.$strip>;
|
|
96
33
|
export type AuthPluginDefinition = def.InferOutput<typeof createAuthPluginDefinitionSchema>;
|
|
97
34
|
export type AuthPluginDefinitionInput = def.InferInput<typeof createAuthPluginDefinitionSchema>;
|
|
98
35
|
//# sourceMappingURL=plugin-definition.d.ts.map
|
|
@@ -1,29 +1,18 @@
|
|
|
1
|
-
import { definitionSchema, featureEntityType,
|
|
1
|
+
import { definitionSchema, featureEntityType, } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { createAuthRolesSchema } from '
|
|
3
|
+
import { createAuthRolesSchema } from './roles/index.js';
|
|
4
4
|
export const createAuthPluginDefinitionSchema = definitionSchema((ctx) => z.object({
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
onDelete: 'RESTRICT',
|
|
9
|
-
}),
|
|
10
|
-
userAccount: ctx.withRef({
|
|
11
|
-
type: modelEntityType,
|
|
12
|
-
onDelete: 'RESTRICT',
|
|
13
|
-
}),
|
|
14
|
-
userRole: ctx.withRef({
|
|
15
|
-
type: modelEntityType,
|
|
16
|
-
onDelete: 'RESTRICT',
|
|
17
|
-
}),
|
|
18
|
-
userSession: ctx.withRef({
|
|
19
|
-
type: modelEntityType,
|
|
20
|
-
onDelete: 'RESTRICT',
|
|
21
|
-
}),
|
|
22
|
-
}),
|
|
5
|
+
implementationPluginKey: z
|
|
6
|
+
.string()
|
|
7
|
+
.min(1, 'Auth implementation plugin must be selected'),
|
|
23
8
|
authFeatureRef: ctx.withRef({
|
|
24
9
|
type: featureEntityType,
|
|
25
10
|
onDelete: 'RESTRICT',
|
|
26
11
|
}),
|
|
12
|
+
accountsFeatureRef: ctx.withRef({
|
|
13
|
+
type: featureEntityType,
|
|
14
|
+
onDelete: 'RESTRICT',
|
|
15
|
+
}),
|
|
27
16
|
roles: createAuthRolesSchema(ctx),
|
|
28
17
|
}));
|
|
29
18
|
//# sourceMappingURL=plugin-definition.js.map
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { authRoleEntityType } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
export const AUTH_DEFAULT_ROLES = [
|
|
3
|
+
{
|
|
4
|
+
name: 'public',
|
|
5
|
+
comment: 'All users (including unauthenticated and authenticated users)',
|
|
6
|
+
builtIn: true,
|
|
7
|
+
autoAssigned: true,
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
name: 'user',
|
|
11
|
+
comment: 'All authenticated users',
|
|
12
|
+
builtIn: true,
|
|
13
|
+
autoAssigned: true,
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: 'system',
|
|
17
|
+
comment: 'System processes without a user context, e.g. background jobs',
|
|
18
|
+
builtIn: true,
|
|
19
|
+
autoAssigned: true,
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
name: 'admin',
|
|
23
|
+
comment: 'Administrator with full access',
|
|
24
|
+
builtIn: true,
|
|
25
|
+
autoAssigned: false,
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
export function createDefaultAuthRoles() {
|
|
29
|
+
return AUTH_DEFAULT_ROLES.map((role) => ({
|
|
30
|
+
...role,
|
|
31
|
+
id: authRoleEntityType.generateNewId(),
|
|
32
|
+
}));
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { def } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
export declare const createAuthRoleSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodType<{
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
comment: string;
|
|
7
|
+
builtIn: boolean;
|
|
8
|
+
autoAssigned: boolean;
|
|
9
|
+
}, {
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
comment: string;
|
|
13
|
+
builtIn?: boolean | undefined;
|
|
14
|
+
autoAssigned?: boolean | undefined;
|
|
15
|
+
}, z.core.$ZodTypeInternals<{
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
comment: string;
|
|
19
|
+
builtIn: boolean;
|
|
20
|
+
autoAssigned: boolean;
|
|
21
|
+
}, {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
comment: string;
|
|
25
|
+
builtIn?: boolean | undefined;
|
|
26
|
+
autoAssigned?: boolean | undefined;
|
|
27
|
+
}>>;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the schema for a role.
|
|
30
|
+
*/
|
|
31
|
+
export type AuthRoleDefinition = def.InferOutput<typeof createAuthRoleSchema>;
|
|
32
|
+
export type AuthRoleInput = def.InferInput<typeof createAuthRoleSchema>;
|
|
33
|
+
/**
|
|
34
|
+
* Defines the schema for an array of roles ensuring that there are no duplicate
|
|
35
|
+
* role names and that the built-in roles are included.
|
|
36
|
+
*/
|
|
37
|
+
export declare const createAuthRolesSchema: (context: import("@baseplate-dev/project-builder-lib").DefinitionSchemaParserContext) => z.ZodArray<z.ZodType<{
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
comment: string;
|
|
41
|
+
builtIn: boolean;
|
|
42
|
+
autoAssigned: boolean;
|
|
43
|
+
}, {
|
|
44
|
+
id: string;
|
|
45
|
+
name: string;
|
|
46
|
+
comment: string;
|
|
47
|
+
builtIn?: boolean | undefined;
|
|
48
|
+
autoAssigned?: boolean | undefined;
|
|
49
|
+
}, z.core.$ZodTypeInternals<{
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
comment: string;
|
|
53
|
+
builtIn: boolean;
|
|
54
|
+
autoAssigned: boolean;
|
|
55
|
+
}, {
|
|
56
|
+
id: string;
|
|
57
|
+
name: string;
|
|
58
|
+
comment: string;
|
|
59
|
+
builtIn?: boolean | undefined;
|
|
60
|
+
autoAssigned?: boolean | undefined;
|
|
61
|
+
}>>>;
|
|
62
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { authRoleEntityType, definitionSchema, } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { AUTH_DEFAULT_ROLES } from './constants.js';
|
|
4
|
+
export const createAuthRoleSchema = definitionSchema((ctx) => ctx.withEnt(z.object({
|
|
5
|
+
id: z.string(),
|
|
6
|
+
name: z.string().min(1),
|
|
7
|
+
comment: z.string().min(1),
|
|
8
|
+
builtIn: z.boolean().default(false),
|
|
9
|
+
autoAssigned: z.boolean().default(false),
|
|
10
|
+
}), { type: authRoleEntityType }));
|
|
11
|
+
/**
|
|
12
|
+
* Defines the schema for an array of roles ensuring that there are no duplicate
|
|
13
|
+
* role names and that the built-in roles are included.
|
|
14
|
+
*/
|
|
15
|
+
export const createAuthRolesSchema = definitionSchema((ctx) => z
|
|
16
|
+
.array(createAuthRoleSchema(ctx))
|
|
17
|
+
.superRefine((roles, ctx) => {
|
|
18
|
+
const dup = roles
|
|
19
|
+
.map((r) => r.name)
|
|
20
|
+
.filter((v, i, a) => a.indexOf(v) !== i);
|
|
21
|
+
if (dup.length > 0) {
|
|
22
|
+
ctx.addIssue({
|
|
23
|
+
code: 'custom',
|
|
24
|
+
message: `Duplicate role name(s): ${dup.join(', ')}`,
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
})
|
|
28
|
+
.superRefine((roles, ctx) => {
|
|
29
|
+
for (const defaultRole of AUTH_DEFAULT_ROLES) {
|
|
30
|
+
if (!roles.some((r) => r.name === defaultRole.name && r.builtIn)) {
|
|
31
|
+
ctx.addIssue({
|
|
32
|
+
code: 'custom',
|
|
33
|
+
message: `Missing built-in role: ${defaultRole.name}`,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}));
|
|
38
|
+
//# sourceMappingURL=schema.js.map
|
package/dist/auth/core/web.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../styles.css';
|
|
2
|
-
declare const _default: import("@baseplate-dev/project-builder-lib").
|
|
3
|
-
|
|
4
|
-
}
|
|
2
|
+
declare const _default: import("@baseplate-dev/project-builder-lib").PluginModule<{
|
|
3
|
+
[x: string]: import("@baseplate-dev/project-builder-lib").PluginSpec<object, object>;
|
|
4
|
+
}>;
|
|
5
5
|
export default _default;
|
|
6
6
|
//# sourceMappingURL=web.d.ts.map
|
package/dist/auth/core/web.js
CHANGED
|
@@ -1,14 +1,42 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createPluginModule, FeatureUtils, pluginDefaultsSpec, webConfigSpec, } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
import { createDefaultAuthRoles } from '#src/auth/core/schema/roles/constants.js';
|
|
2
3
|
import { AuthDefinitionEditor } from './components/auth-definition-editor.js';
|
|
3
4
|
import '../../styles.css';
|
|
4
|
-
|
|
5
|
+
const AUTH_FEATURE_NAME = 'accounts/auth';
|
|
6
|
+
const ACCOUNTS_FEATURE_NAME = 'accounts/users';
|
|
7
|
+
const AUTH_IMPL_FQN_PREFIX = '@baseplate-dev/plugin-auth:';
|
|
8
|
+
const PARENT_AUTH_FQN = '@baseplate-dev/plugin-auth:auth';
|
|
9
|
+
export default createPluginModule({
|
|
10
|
+
name: 'web',
|
|
5
11
|
dependencies: {
|
|
6
12
|
webConfig: webConfigSpec,
|
|
13
|
+
pluginDefaults: pluginDefaultsSpec,
|
|
7
14
|
},
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
initialize: ({ webConfig, pluginDefaults }, { pluginKey }) => {
|
|
16
|
+
webConfig.components.set(pluginKey, AuthDefinitionEditor);
|
|
17
|
+
pluginDefaults.builders.set(pluginKey, ({ draft, enabledPluginFqns, findPluginMetadataByFqn }) => {
|
|
18
|
+
const authFeatureRef = FeatureUtils.ensureFeatureByNameRecursively(draft, AUTH_FEATURE_NAME);
|
|
19
|
+
const accountsFeatureRef = FeatureUtils.ensureFeatureByNameRecursively(draft, ACCOUNTS_FEATURE_NAME);
|
|
20
|
+
// The auth parent plugin needs an implementation chosen by the caller
|
|
21
|
+
// (local-auth / better-auth / placeholder-auth). Pick whichever impl
|
|
22
|
+
// plugin under `@baseplate-dev/plugin-auth:` is also being enabled.
|
|
23
|
+
const implFqn = [...enabledPluginFqns].find((fqn) => fqn.startsWith(AUTH_IMPL_FQN_PREFIX) && fqn !== PARENT_AUTH_FQN);
|
|
24
|
+
if (!implFqn) {
|
|
25
|
+
throw new Error('No auth implementation plugin enabled. Add an auth implementation (e.g. local-auth or better-auth) to the enabled plugins.');
|
|
26
|
+
}
|
|
27
|
+
const implPlugin = findPluginMetadataByFqn(implFqn);
|
|
28
|
+
if (!implPlugin) {
|
|
29
|
+
throw new Error(`Auth implementation plugin ${implFqn} is enabled but its metadata could not be resolved.`);
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
config: {
|
|
33
|
+
implementationPluginKey: implPlugin.key,
|
|
34
|
+
authFeatureRef,
|
|
35
|
+
accountsFeatureRef,
|
|
36
|
+
roles: createDefaultAuthRoles(),
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
});
|
|
12
40
|
},
|
|
13
41
|
});
|
|
14
42
|
//# sourceMappingURL=web.js.map
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './utils/index.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/auth/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './utils/index.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "auth",
|
|
3
|
+
"displayName": "Authentication",
|
|
4
|
+
"icon": "icon.svg",
|
|
5
|
+
"description": "Manages user authentication and authorization for your application. This is a base plugin that requires an authentication implementation (Local Auth, Better Auth, etc.)",
|
|
6
|
+
"version": "0.1.0",
|
|
7
|
+
"moduleDirectories": ["core"]
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ProjectDefinition } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
import type { AuthPluginDefinition } from '../core/schema/plugin-definition.js';
|
|
3
|
+
/**
|
|
4
|
+
* Get the auth plugin definition from the project definition.
|
|
5
|
+
* @param definition - The project definition.
|
|
6
|
+
* @returns The auth plugin definition.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getAuthPluginDefinition(definition: ProjectDefinition): AuthPluginDefinition;
|
|
9
|
+
//# sourceMappingURL=get-auth-plugin-definition.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PluginUtils } from '@baseplate-dev/project-builder-lib';
|
|
2
|
+
/**
|
|
3
|
+
* Get the auth plugin definition from the project definition.
|
|
4
|
+
* @param definition - The project definition.
|
|
5
|
+
* @returns The auth plugin definition.
|
|
6
|
+
*/
|
|
7
|
+
export function getAuthPluginDefinition(definition) {
|
|
8
|
+
return PluginUtils.configByKeyOrThrow(definition, 'baseplate-dev_plugin-auth_auth');
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=get-auth-plugin-definition.js.map
|