@baseplate-dev/plugin-auth 1.0.5 → 1.0.7
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 +720 -0
- package/LICENSE +114 -123
- package/README.md +3 -3
- package/dist/auth/core/common.d.ts +2 -5
- package/dist/auth/core/common.d.ts.map +1 -1
- package/dist/auth/core/common.js +15 -18
- package/dist/auth/core/common.js.map +1 -1
- package/dist/auth/core/components/auth-definition-editor.d.ts.map +1 -1
- package/dist/auth/core/components/auth-definition-editor.js +44 -30
- package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.d.ts +12 -0
- package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +1 -0
- package/dist/auth/core/components/role-editor-form/role-dialog.js +29 -0
- package/dist/auth/core/components/role-editor-form/role-dialog.js.map +1 -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.d.ts.map +1 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.js +52 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.js.map +1 -0
- package/dist/auth/core/node.d.ts +3 -3
- package/dist/auth/core/node.d.ts.map +1 -1
- package/dist/auth/core/node.js +30 -50
- package/dist/auth/core/node.js.map +1 -1
- package/dist/auth/core/schema/plugin-definition.d.ts +6 -74
- package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth/core/schema/plugin-definition.js +5 -20
- package/dist/auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth/core/schema/roles/constants.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/constants.js.map +1 -0
- package/dist/auth/core/schema/roles/index.d.ts +3 -0
- package/dist/auth/core/schema/roles/index.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/index.js +3 -0
- package/dist/auth/core/schema/roles/index.js.map +1 -0
- package/dist/auth/core/schema/roles/schema.d.ts +54 -0
- package/dist/auth/core/schema/roles/schema.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/schema.js +37 -0
- package/dist/auth/core/schema/roles/schema.js.map +1 -0
- package/dist/auth/core/web.d.ts +3 -3
- package/dist/auth/core/web.d.ts.map +1 -1
- package/dist/auth/core/web.js +5 -6
- package/dist/auth/core/web.js.map +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/index.js.map +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.d.ts.map +1 -0
- package/dist/auth/utils/get-auth-plugin-definition.js +10 -0
- package/dist/auth/utils/get-auth-plugin-definition.js.map +1 -0
- package/dist/auth/utils/index.d.ts +2 -0
- package/dist/auth/utils/index.d.ts.map +1 -0
- package/dist/auth/utils/index.js +2 -0
- package/dist/auth/utils/index.js.map +1 -0
- package/dist/better-auth/constants/model-names.d.ts +8 -0
- package/dist/better-auth/constants/model-names.d.ts.map +1 -0
- package/dist/better-auth/constants/model-names.js +8 -0
- package/dist/better-auth/constants/model-names.js.map +1 -0
- package/dist/better-auth/constants/packages.d.ts +4 -0
- package/dist/better-auth/constants/packages.d.ts.map +1 -0
- package/dist/better-auth/constants/packages.js +4 -0
- package/dist/better-auth/constants/packages.js.map +1 -0
- package/dist/better-auth/core/common.d.ts +6 -0
- package/dist/better-auth/core/common.d.ts.map +1 -0
- package/dist/better-auth/core/common.js +17 -0
- package/dist/better-auth/core/common.js.map +1 -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.d.ts.map +1 -0
- package/dist/better-auth/core/components/better-auth-definition-editor.js +50 -0
- package/dist/better-auth/core/components/better-auth-definition-editor.js.map +1 -0
- package/dist/better-auth/core/index.d.ts +2 -0
- package/dist/better-auth/core/index.d.ts.map +1 -0
- package/dist/better-auth/core/index.js +2 -0
- package/dist/better-auth/core/index.js.map +1 -0
- package/dist/better-auth/core/node.d.ts +5 -0
- package/dist/better-auth/core/node.d.ts.map +1 -0
- package/dist/better-auth/core/node.js +47 -0
- package/dist/better-auth/core/node.js.map +1 -0
- package/dist/better-auth/core/schema/models.d.ts +3 -0
- package/dist/better-auth/core/schema/models.d.ts.map +1 -0
- package/dist/better-auth/core/schema/models.js +278 -0
- package/dist/better-auth/core/schema/models.js.map +1 -0
- package/dist/better-auth/core/schema/plugin-definition.d.ts +5 -0
- package/dist/better-auth/core/schema/plugin-definition.d.ts.map +1 -0
- package/dist/better-auth/core/schema/plugin-definition.js +4 -0
- package/dist/better-auth/core/schema/plugin-definition.js.map +1 -0
- package/dist/better-auth/core/web.d.ts +6 -0
- package/dist/better-auth/core/web.d.ts.map +1 -0
- package/dist/better-auth/core/web.js +13 -0
- package/dist/better-auth/core/web.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +85 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +75 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +142 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +73 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +84 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +30 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +37 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +65 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +72 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js.map +1 -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.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.js +3 -0
- package/dist/better-auth/generators/fastify/better-auth-module/index.js.map +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +31 -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 +62 -0
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +72 -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 +2 -0
- package/dist/better-auth/generators/fastify/index.d.ts.map +1 -0
- package/dist/better-auth/generators/fastify/index.js +2 -0
- package/dist/better-auth/generators/fastify/index.js.map +1 -0
- package/dist/better-auth/generators/index.d.ts.map +1 -0
- package/dist/better-auth/generators/index.js.map +1 -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.d.ts.map +1 -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/better-auth-hooks.generator.js.map +1 -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.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -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.d.ts.map +1 -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/template-renderers.js.map +1 -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.d.ts.map +1 -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/ts-import-providers.js.map +1 -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.d.ts.map +1 -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/generated/typed-templates.js.map +1 -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.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.js +2 -0
- package/dist/better-auth/generators/react/better-auth-hooks/index.js.map +1 -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 +249 -0
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +1 -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/better-auth-pages.generator.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +724 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts.map +1 -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/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts +13 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js +25 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-paths.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +250 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts.map +1 -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/template-renderers.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +943 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js +35 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.js.map +1 -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.d.ts.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.js +2 -0
- package/dist/better-auth/generators/react/better-auth-pages/index.js.map +1 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/login.tsx +144 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/register.tsx +160 -0
- package/dist/better-auth/generators/react/index.d.ts +4 -0
- package/dist/better-auth/generators/react/index.d.ts.map +1 -0
- package/dist/better-auth/generators/react/index.js +4 -0
- package/dist/better-auth/generators/react/index.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +515 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +260 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts.map +1 -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/template-renderers.js.map +1 -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.d.ts.map +1 -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/ts-import-providers.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +247 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts.map +1 -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/generated/typed-templates.js.map +1 -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.d.ts.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/index.js +3 -0
- package/dist/better-auth/generators/react/react-better-auth/index.js.map +1 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +280 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts.map +1 -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/react-better-auth.generator.js.map +1 -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.d.ts.map +1 -0
- package/dist/better-auth/index.js +2 -0
- package/dist/better-auth/index.js.map +1 -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.d.ts.map +1 -0
- package/dist/common/components/auth-config-tabs.js +21 -0
- package/dist/common/components/auth-config-tabs.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/admin/common.js +29 -0
- package/dist/local-auth/admin/common.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +488 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts.map +1 -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/admin-crud-manage-roles-action.generator.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +488 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +249 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts.map +1 -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/template-renderers.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +238 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts.map +1 -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/generated/typed-templates.js.map +1 -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.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +164 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +487 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts.map +1 -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/admin-crud-reset-password-action.generator.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +488 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +249 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts.map +1 -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/template-renderers.js.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +473 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts.map +1 -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/generated/typed-templates.js.map +1 -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.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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 +233 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts.map +1 -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/admin-crud-roles-column.generator.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js +2 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/index.js.map +1 -0
- package/dist/local-auth/admin/node.d.ts +5 -0
- package/dist/local-auth/admin/node.d.ts.map +1 -0
- package/dist/local-auth/admin/node.js +57 -0
- package/dist/local-auth/admin/node.js.map +1 -0
- package/dist/local-auth/admin/schema/manage-role-action.d.ts +12 -0
- package/dist/local-auth/admin/schema/manage-role-action.d.ts.map +1 -0
- package/dist/local-auth/admin/schema/manage-role-action.js +6 -0
- package/dist/local-auth/admin/schema/manage-role-action.js.map +1 -0
- package/dist/local-auth/admin/schema/reset-password-action.d.ts +12 -0
- package/dist/local-auth/admin/schema/reset-password-action.d.ts.map +1 -0
- package/dist/local-auth/admin/schema/reset-password-action.js +6 -0
- package/dist/local-auth/admin/schema/reset-password-action.js.map +1 -0
- package/dist/local-auth/admin/schema/roles-column.d.ts +9 -0
- package/dist/local-auth/admin/schema/roles-column.d.ts.map +1 -0
- package/dist/local-auth/admin/schema/roles-column.js +6 -0
- package/dist/local-auth/admin/schema/roles-column.js.map +1 -0
- package/dist/local-auth/admin/web.d.ts +5 -0
- package/dist/local-auth/admin/web.d.ts.map +1 -0
- package/dist/local-auth/admin/web.js +39 -0
- package/dist/local-auth/admin/web.js.map +1 -0
- package/dist/local-auth/constants/model-names.d.ts +23 -0
- package/dist/local-auth/constants/model-names.d.ts.map +1 -0
- package/dist/local-auth/constants/model-names.js +23 -0
- package/dist/local-auth/constants/model-names.js.map +1 -0
- package/dist/local-auth/core/common.d.ts +6 -0
- package/dist/local-auth/core/common.d.ts.map +1 -0
- package/dist/local-auth/core/common.js +17 -0
- package/dist/local-auth/core/common.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.js +59 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +14 -0
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js +40 -0
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +1 -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.js.map +1 -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 +136 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +76 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +359 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +110 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +93 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -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.d.ts.map +1 -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/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +394 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +141 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/index.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +38 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +54 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +72 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +91 -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.d.ts.map +1 -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.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +140 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +37 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +161 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +235 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +60 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +207 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +330 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +43 -0
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map +1 -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/auth-email-templates.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +96 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts.map +1 -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/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +41 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts.map +1 -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/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +60 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts.map +1 -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/generated/typed-templates.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.js +2 -0
- package/dist/local-auth/core/generators/auth-email-templates/index.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js +32 -0
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +45 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -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.d.ts.map +1 -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/ts-import-providers.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +50 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/index.js +3 -0
- package/dist/local-auth/core/generators/auth-hooks/index.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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 +117 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +103 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +281 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +24 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +36 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +102 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +109 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +30 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +37 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +269 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +192 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +6 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +17 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +21 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +18 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +22 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js +35 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-roles.service.ts +47 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +190 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +1 -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/cookie-signer.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +1 -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.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +263 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +32 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +1497 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +264 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +62 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -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.d.ts.map +1 -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/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +2206 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +117 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/index.js +3 -0
- package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +85 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +168 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +82 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +153 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +150 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +283 -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_/route.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/index.js +10 -0
- package/dist/local-auth/core/generators/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-auth/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-auth/index.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.js +31 -0
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +546 -0
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/index.js +11 -0
- package/dist/local-auth/core/generators/react-session/generated/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +271 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +51 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -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.d.ts.map +1 -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/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +525 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +35 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +290 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.js +48 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -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.js.map +1 -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.d.ts.map +1 -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.js.map +1 -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 +99 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +11 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +1 -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.d.ts.map +1 -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-paths.js.map +1 -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.d.ts.map +1 -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/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts +18 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js +26 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +21 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts +4 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.js +3 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +57 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -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.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +32 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +43 -0
- package/dist/local-auth/core/index.d.ts.map +1 -0
- package/dist/local-auth/core/index.js.map +1 -0
- package/dist/local-auth/core/node.d.ts +5 -0
- package/dist/local-auth/core/node.d.ts.map +1 -0
- package/dist/local-auth/core/node.js +69 -0
- package/dist/local-auth/core/node.js.map +1 -0
- package/dist/local-auth/core/schema/models.d.ts +3 -0
- package/dist/local-auth/core/schema/models.d.ts.map +1 -0
- package/dist/local-auth/core/schema/models.js +266 -0
- package/dist/local-auth/core/schema/models.js.map +1 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts +9 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -0
- package/dist/local-auth/core/schema/plugin-definition.js +13 -0
- package/dist/local-auth/core/schema/plugin-definition.js.map +1 -0
- package/dist/local-auth/core/web.d.ts +6 -0
- package/dist/local-auth/core/web.d.ts.map +1 -0
- package/dist/local-auth/core/web.js +13 -0
- package/dist/local-auth/core/web.js.map +1 -0
- package/dist/local-auth/index.d.ts +2 -0
- package/dist/local-auth/index.d.ts.map +1 -0
- package/dist/local-auth/index.js +2 -0
- package/dist/local-auth/index.js.map +1 -0
- package/dist/local-auth/plugin.json +9 -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.d.ts.map +1 -0
- package/dist/placeholder-auth/constants/model-names.js +4 -0
- package/dist/placeholder-auth/constants/model-names.js.map +1 -0
- package/dist/placeholder-auth/core/common.d.ts +2 -5
- package/dist/placeholder-auth/core/common.d.ts.map +1 -1
- package/dist/placeholder-auth/core/common.js +11 -20
- package/dist/placeholder-auth/core/common.js.map +1 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +1 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +21 -29
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
- 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/index.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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-paths.js.map +1 -1
- 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.d.ts.map +1 -1
- 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/template-renderers.js.map +1 -1
- 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.d.ts.map +1 -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/ts-import-providers.js.map +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.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +7 -32
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js +1 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts +3 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +4 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +1 -1
- 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/template-renderers.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/placeholder-auth/core/node.js +15 -29
- package/dist/placeholder-auth/core/node.js.map +1 -1
- package/dist/placeholder-auth/core/schema/models.d.ts +2 -5
- package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/models.js +31 -28
- package/dist/placeholder-auth/core/schema/models.js.map +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +2 -79
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js +2 -15
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/placeholder-auth/core/web.d.ts +3 -3
- package/dist/placeholder-auth/core/web.d.ts.map +1 -1
- package/dist/placeholder-auth/core/web.js +5 -6
- package/dist/placeholder-auth/core/web.js.map +1 -1
- package/dist/placeholder-auth/plugin.json +10 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-CnNoa4tF.js +30 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-CnNoa4tF.js.map +1 -0
- package/dist/web/assets/__federation_expose_authCoreWeb-BL_U7yuj.js +433 -0
- package/dist/web/assets/__federation_expose_authCoreWeb-BL_U7yuj.js.map +1 -0
- package/dist/web/assets/__federation_expose_better-authCoreCommon-D-mTcxYO.js +20 -0
- package/dist/web/assets/__federation_expose_better-authCoreCommon-D-mTcxYO.js.map +1 -0
- package/dist/web/assets/__federation_expose_better-authCoreWeb-CXHL-Ghf.js +402 -0
- package/dist/web/assets/__federation_expose_better-authCoreWeb-CXHL-Ghf.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authAdminCommon-LIsARRNU.js +63 -0
- package/dist/web/assets/__federation_expose_local-authAdminCommon-LIsARRNU.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-DyYUDLm9.js +41 -0
- package/dist/web/assets/__federation_expose_local-authAdminWeb-DyYUDLm9.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-p_UbExc7.js +21 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-p_UbExc7.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreWeb-8TcUJFT6.js +432 -0
- package/dist/web/assets/__federation_expose_local-authCoreWeb-8TcUJFT6.js.map +1 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CtZXaDUc.js +23 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-CtZXaDUc.js.map +1 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CZAKokTb.js +162 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-CZAKokTb.js.map +1 -0
- package/dist/web/assets/__federation_fn_import-3DENgil8.js +421 -0
- package/dist/web/assets/__federation_fn_import-3DENgil8.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-B5bdbzFj.js +357 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-B5bdbzFj.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DCA3vO4J.js +21478 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DCA3vO4J.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BvL7RO9S.js +73599 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BvL7RO9S.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-0-N5BG4T.js +1822 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-0-N5BG4T.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/react-router-DSniiJ6U.js +6565 -0
- package/dist/web/assets/__federation_shared_@tanstack/react-router-DSniiJ6U.js.map +1 -0
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js +8 -0
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js.map +1 -0
- package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js +251 -0
- package/dist/web/assets/__federation_shared_react-dom-B4vgf5Ln.js.map +1 -0
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js +13250 -0
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +1 -0
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js +6 -0
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js.map +1 -0
- package/dist/web/assets/get-auth-plugin-definition-DHcbFujw.js +13 -0
- package/dist/web/assets/get-auth-plugin-definition-DHcbFujw.js.map +1 -0
- package/dist/web/assets/index-DQKNnI1w.js +103 -0
- package/dist/web/assets/index-DQKNnI1w.js.map +1 -0
- package/dist/web/assets/index-DUwCgkeV.js +570 -0
- package/dist/web/assets/index-DUwCgkeV.js.map +1 -0
- package/dist/web/assets/index.esm-Dpqxgpya.js +2676 -0
- package/dist/web/assets/index.esm-Dpqxgpya.js.map +1 -0
- package/dist/web/assets/isEqual-tnzoadW8.js +242 -0
- package/dist/web/assets/isEqual-tnzoadW8.js.map +1 -0
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js +60 -0
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js.map +1 -0
- package/dist/web/assets/mergeWith-VagwCqUi.js +76 -0
- package/dist/web/assets/mergeWith-VagwCqUi.js.map +1 -0
- package/dist/web/assets/model-names-DrcaRxt1.js +25 -0
- package/dist/web/assets/model-names-DrcaRxt1.js.map +1 -0
- package/dist/web/assets/model-utils-BFX3c3dn.js +694 -0
- package/dist/web/assets/model-utils-BFX3c3dn.js.map +1 -0
- package/dist/web/assets/plugin-definition-B86WQ7Ni.js +79 -0
- package/dist/web/assets/plugin-definition-B86WQ7Ni.js.map +1 -0
- package/dist/web/assets/plugin-definition-CEQb6mWV.js +20 -0
- package/dist/web/assets/plugin-definition-CEQb6mWV.js.map +1 -0
- package/dist/web/assets/plugin-definition-DrsKbcJc.js +31 -0
- package/dist/web/assets/plugin-definition-DrsKbcJc.js.map +1 -0
- package/dist/web/assets/plugin-definition-KEpaSB6p.js +16 -0
- package/dist/web/assets/plugin-definition-KEpaSB6p.js.map +1 -0
- package/dist/web/assets/react-hu8Hx0R4.js +47 -0
- package/dist/web/assets/react-hu8Hx0R4.js.map +1 -0
- package/dist/web/assets/registries-Tz_dluz3.js +1119 -0
- package/dist/web/assets/registries-Tz_dluz3.js.map +1 -0
- package/dist/web/assets/remoteEntry.js +26 -14
- package/dist/web/assets/remoteEntry.js.map +1 -1
- package/dist/web/assets/style-DiK_rD1L.css +120 -0
- package/dist/web/assets/styles-CpKtlIgU.js +69 -0
- package/dist/web/assets/styles-CpKtlIgU.js.map +1 -0
- package/dist/web/assets/with-selector-DTXBONcE.js +201 -0
- package/dist/web/assets/with-selector-DTXBONcE.js.map +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +42 -36
- 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.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/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/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/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 -57
- 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.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/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/metadata.json +0 -9
- package/dist/web/assets/__federation_expose_auth0CoreCommon-BXcKWfCq.js +0 -56
- package/dist/web/assets/__federation_expose_auth0CoreCommon-BXcKWfCq.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreWeb-VnxlQY01.js +0 -201
- package/dist/web/assets/__federation_expose_auth0CoreWeb-VnxlQY01.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-LrPwgIpw.js +0 -36
- package/dist/web/assets/__federation_expose_authCoreCommon-LrPwgIpw.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreWeb-CGWfg0Fb.js +0 -401
- package/dist/web/assets/__federation_expose_authCoreWeb-CGWfg0Fb.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DCZZPRb7.js +0 -39
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DCZZPRb7.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BunerD5g.js +0 -197
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BunerD5g.js.map +0 -1
- package/dist/web/assets/__federation_fn_import-BDimcZUI.js +0 -421
- package/dist/web/assets/__federation_fn_import-BDimcZUI.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-oq9zm9eN.js +0 -341
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-oq9zm9eN.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DqkNAXn3.js +0 -10251
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DqkNAXn3.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BxXhpJ04.js +0 -23623
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BxXhpJ04.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-D4PxvJ0z.js +0 -101
- package/dist/web/assets/index-D4PxvJ0z.js.map +0 -1
- package/dist/web/assets/index.esm-qm5h2Bmg.js +0 -2627
- package/dist/web/assets/index.esm-qm5h2Bmg.js.map +0 -1
- package/dist/web/assets/model-merger-CA2yaVFd.js +0 -1684
- package/dist/web/assets/model-merger-CA2yaVFd.js.map +0 -1
- package/dist/web/assets/plugin-definition-BEHZirWF.js +0 -24
- package/dist/web/assets/plugin-definition-BEHZirWF.js.map +0 -1
- package/dist/web/assets/plugin-definition-CoiivnNt.js +0 -36
- package/dist/web/assets/plugin-definition-CoiivnNt.js.map +0 -1
- package/dist/web/assets/plugin-definition-X0d5-H4U.js +0 -24
- package/dist/web/assets/plugin-definition-X0d5-H4U.js.map +0 -1
- package/dist/web/assets/react-BLL9qrdY.js +0 -47
- package/dist/web/assets/react-BLL9qrdY.js.map +0 -1
- package/dist/web/assets/role-editor-form-lOkPZX7S.js +0 -319
- package/dist/web/assets/role-editor-form-lOkPZX7S.js.map +0 -1
- package/dist/web/assets/style-ZUYizAnf.css +0 -93
- package/dist/web/assets/styles-B6SRrcui.js +0 -201
- package/dist/web/assets/styles-B6SRrcui.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/{common → auth/core/schema}/roles/constants.js +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/services/user-session.service.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/session-cookie.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,207 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '$constantsPassword';
|
|
3
|
+
import { requestEmailVerification } from '$servicesEmailVerification';
|
|
4
|
+
import { BadRequestError, handleZodRequestValidationError, logError, NotFoundError, TooManyRequestsError, } from '%errorHandlerServiceImports';
|
|
5
|
+
import { createPasswordHash, verifyPasswordHash, } from '%passwordHasherServiceImports';
|
|
6
|
+
import { prisma } from '%prismaImports';
|
|
7
|
+
import { memoizeRateLimiter } from '%rateLimitImports';
|
|
8
|
+
import { userSessionService } from '%userSessionServiceImports';
|
|
9
|
+
import z from 'zod';
|
|
10
|
+
const PROVIDER_ID = 'email-password';
|
|
11
|
+
const emailPasswordSchema = z.object({
|
|
12
|
+
email: z
|
|
13
|
+
.email()
|
|
14
|
+
.max(PASSWORD_MAX_LENGTH)
|
|
15
|
+
.transform((value) => value.toLowerCase()),
|
|
16
|
+
password: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* Rate limiters for authentication operations.
|
|
20
|
+
*/
|
|
21
|
+
const getRegistrationLimiter = memoizeRateLimiter('registration', {
|
|
22
|
+
points: 10,
|
|
23
|
+
duration: 60 * 60, // 1 hour
|
|
24
|
+
blockDuration: 60 * 60, // Block for 1 hour if exceeded
|
|
25
|
+
});
|
|
26
|
+
const getLoginIpLimiter = memoizeRateLimiter('login-ip', {
|
|
27
|
+
points: 10,
|
|
28
|
+
duration: 60 * 60 * 24, // 24 hours
|
|
29
|
+
blockDuration: 60 * 60, // Block for 1 hour if exceeded
|
|
30
|
+
});
|
|
31
|
+
const getLoginConsecutiveFailsLimiter = memoizeRateLimiter('login-consecutive-fails', {
|
|
32
|
+
points: 5,
|
|
33
|
+
duration: 60 * 60 * 24, // 24 hours (duration for tracking)
|
|
34
|
+
blockDuration: 60 * 15, // Block for 15 minutes after 5 consecutive fails
|
|
35
|
+
});
|
|
36
|
+
export async function createUserWithEmailAndPassword({ input, }) {
|
|
37
|
+
const { email, password } = await emailPasswordSchema
|
|
38
|
+
.parseAsync(input)
|
|
39
|
+
.catch(handleZodRequestValidationError);
|
|
40
|
+
// check if user with that email already exists
|
|
41
|
+
const existingUser = await prisma.userAccount.findUnique({
|
|
42
|
+
where: {
|
|
43
|
+
accountId_providerId: {
|
|
44
|
+
accountId: email,
|
|
45
|
+
providerId: PROVIDER_ID,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
});
|
|
49
|
+
if (existingUser !== null) {
|
|
50
|
+
throw new BadRequestError('Email already taken', 'email-taken');
|
|
51
|
+
}
|
|
52
|
+
// create user
|
|
53
|
+
const user = await prisma.user.create({
|
|
54
|
+
data: {
|
|
55
|
+
email,
|
|
56
|
+
accounts: {
|
|
57
|
+
create: {
|
|
58
|
+
accountId: email,
|
|
59
|
+
providerId: PROVIDER_ID,
|
|
60
|
+
password: await createPasswordHash(password),
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
return user;
|
|
66
|
+
}
|
|
67
|
+
export async function registerUserWithEmailAndPassword({ input, context, }) {
|
|
68
|
+
// Rate limit registration by IP
|
|
69
|
+
await getRegistrationLimiter().consumeOrThrow(context.reqInfo.ip, 'Too many registration attempts. Please try again later.', 'registration-rate-limited');
|
|
70
|
+
const user = await createUserWithEmailAndPassword({ input });
|
|
71
|
+
const session = await userSessionService.createSession(user.id, context);
|
|
72
|
+
// Send verification email (fire-and-forget, don't block registration)
|
|
73
|
+
requestEmailVerification({ userId: user.id, context }).catch(logError);
|
|
74
|
+
return { session, user };
|
|
75
|
+
}
|
|
76
|
+
export async function authenticateUserWithEmailAndPassword({ input, context, }) {
|
|
77
|
+
const { email, password } = await emailPasswordSchema
|
|
78
|
+
.parseAsync(input)
|
|
79
|
+
.catch(handleZodRequestValidationError);
|
|
80
|
+
// Rate limiting setup
|
|
81
|
+
const clientIp = context.reqInfo.ip;
|
|
82
|
+
const emailIpKey = `${email}_${clientIp}`;
|
|
83
|
+
// Check IP-based rate limit (slow brute force protection)
|
|
84
|
+
await getLoginIpLimiter().consumeOrThrow(clientIp, 'Too many login attempts. Please try again later.', 'login-ip-rate-limited');
|
|
85
|
+
// Check consecutive failures rate limit (fast brute force protection)
|
|
86
|
+
const consecutiveFailsResult = await getLoginConsecutiveFailsLimiter().get(emailIpKey);
|
|
87
|
+
if (consecutiveFailsResult && !consecutiveFailsResult.allowed) {
|
|
88
|
+
throw new TooManyRequestsError('Account temporarily locked due to too many failed attempts. Please try again later.', 'login-consecutive-fails-blocked', { retryAfterMs: consecutiveFailsResult.msBeforeNext });
|
|
89
|
+
}
|
|
90
|
+
// check if user with that email exists
|
|
91
|
+
const userAccount = await prisma.userAccount.findUnique({
|
|
92
|
+
where: {
|
|
93
|
+
accountId_providerId: {
|
|
94
|
+
accountId: email,
|
|
95
|
+
providerId: PROVIDER_ID,
|
|
96
|
+
},
|
|
97
|
+
},
|
|
98
|
+
});
|
|
99
|
+
// check for password match
|
|
100
|
+
const isValid = await verifyPasswordHash(userAccount?.password ?? '', password);
|
|
101
|
+
if (!isValid || !userAccount) {
|
|
102
|
+
// Track failed attempt
|
|
103
|
+
await getLoginConsecutiveFailsLimiter().consume(emailIpKey);
|
|
104
|
+
throw new BadRequestError('Invalid email or password', 'invalid-credentials');
|
|
105
|
+
}
|
|
106
|
+
// Reset consecutive failures on successful login
|
|
107
|
+
await getLoginConsecutiveFailsLimiter().delete(emailIpKey);
|
|
108
|
+
const session = await userSessionService.createSession(userAccount.userId, context);
|
|
109
|
+
return { session };
|
|
110
|
+
}
|
|
111
|
+
const changePasswordSchema = z.object({
|
|
112
|
+
currentPassword: z.string().min(1).max(PASSWORD_MAX_LENGTH),
|
|
113
|
+
newPassword: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
|
|
114
|
+
});
|
|
115
|
+
/**
|
|
116
|
+
* Change a user's password after validating their current password.
|
|
117
|
+
* This is used when a user wants to change their own password.
|
|
118
|
+
*
|
|
119
|
+
* @param params - The parameters for changing password
|
|
120
|
+
* @param params.userId - The ID of the user changing their password
|
|
121
|
+
* @param params.input - The current and new password
|
|
122
|
+
* @returns The updated user
|
|
123
|
+
*/
|
|
124
|
+
export async function changeUserPassword({ userId, input, }) {
|
|
125
|
+
const { currentPassword, newPassword } = await changePasswordSchema
|
|
126
|
+
.parseAsync(input)
|
|
127
|
+
.catch(handleZodRequestValidationError);
|
|
128
|
+
// Get the user's account
|
|
129
|
+
const userAccount = await prisma.userAccount.findFirst({
|
|
130
|
+
where: {
|
|
131
|
+
userId,
|
|
132
|
+
providerId: PROVIDER_ID,
|
|
133
|
+
},
|
|
134
|
+
});
|
|
135
|
+
// Verify current password
|
|
136
|
+
const isValid = await verifyPasswordHash(userAccount?.password ?? '', currentPassword);
|
|
137
|
+
if (!isValid || !userAccount) {
|
|
138
|
+
throw new BadRequestError('Current password is incorrect', 'invalid-current-password');
|
|
139
|
+
}
|
|
140
|
+
// Update to new password
|
|
141
|
+
await prisma.userAccount.update({
|
|
142
|
+
where: {
|
|
143
|
+
accountId_providerId: {
|
|
144
|
+
accountId: userAccount.accountId,
|
|
145
|
+
providerId: PROVIDER_ID,
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
data: {
|
|
149
|
+
password: await createPasswordHash(newPassword),
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
return prisma.user.findUniqueOrThrow({
|
|
153
|
+
where: { id: userId },
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
const resetPasswordSchema = z.object({
|
|
157
|
+
newPassword: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
|
|
158
|
+
});
|
|
159
|
+
/**
|
|
160
|
+
* Reset a user's password without requiring the current password.
|
|
161
|
+
* This is used by administrators to reset any user's password.
|
|
162
|
+
*
|
|
163
|
+
* @param params - The parameters for resetting password
|
|
164
|
+
* @param params.userId - The ID of the user whose password is being reset
|
|
165
|
+
* @param params.input - The new password
|
|
166
|
+
* @returns The updated user
|
|
167
|
+
*/
|
|
168
|
+
export async function resetUserPassword({ userId, input, }) {
|
|
169
|
+
const { newPassword } = await resetPasswordSchema
|
|
170
|
+
.parseAsync(input)
|
|
171
|
+
.catch(handleZodRequestValidationError);
|
|
172
|
+
// Check if user exists
|
|
173
|
+
const user = await prisma.user.findUnique({
|
|
174
|
+
where: { id: userId },
|
|
175
|
+
});
|
|
176
|
+
if (user === null) {
|
|
177
|
+
throw new NotFoundError('User not found', 'user-not-found');
|
|
178
|
+
}
|
|
179
|
+
if (!user.email) {
|
|
180
|
+
throw new BadRequestError('User has no email', 'user-has-no-email');
|
|
181
|
+
}
|
|
182
|
+
// Get or create the user's password account
|
|
183
|
+
const passwordHash = await createPasswordHash(newPassword);
|
|
184
|
+
await prisma.userAccount.upsert({
|
|
185
|
+
where: {
|
|
186
|
+
accountId_providerId: {
|
|
187
|
+
accountId: user.email,
|
|
188
|
+
providerId: PROVIDER_ID,
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
create: {
|
|
192
|
+
user: {
|
|
193
|
+
connect: {
|
|
194
|
+
id: userId,
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
accountId: user.email,
|
|
198
|
+
providerId: PROVIDER_ID,
|
|
199
|
+
password: passwordHash,
|
|
200
|
+
},
|
|
201
|
+
update: {
|
|
202
|
+
password: passwordHash,
|
|
203
|
+
},
|
|
204
|
+
});
|
|
205
|
+
return user;
|
|
206
|
+
}
|
|
207
|
+
//# sourceMappingURL=user-password.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-password.service.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts"],"names":[],"mappings":"AAAA,cAAc;AAMd,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,eAAe,EACf,+BAA+B,EAC/B,QAAQ,EACR,aAAa,EACb,oBAAoB,GACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAErC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,KAAK,EAAE,CAAC;SACL,KAAK,EAAE;SACP,GAAG,CAAC,mBAAmB,CAAC;SACxB,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;IAC5C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC;CACvE,CAAC,CAAC;AAEH;;GAEG;AAEH,MAAM,sBAAsB,GAAG,kBAAkB,CAAC,cAAc,EAAE;IAChE,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,EAAE,GAAG,EAAE,EAAE,SAAS;IAC5B,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,+BAA+B;CACxD,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,UAAU,EAAE;IACvD,MAAM,EAAE,EAAE;IACV,QAAQ,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,WAAW;IACnC,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,+BAA+B;CACxD,CAAC,CAAC;AAEH,MAAM,+BAA+B,GAAG,kBAAkB,CACxD,yBAAyB,EACzB;IACE,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,mCAAmC;IAC3D,aAAa,EAAE,EAAE,GAAG,EAAE,EAAE,iDAAiD;CAC1E,CACF,CAAC;AAEF,MAAM,CAAC,KAAK,UAAU,8BAA8B,CAAC,EACnD,KAAK,GAMN;IACC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,mBAAmB;SAClD,UAAU,CAAC,KAAK,CAAC;SACjB,KAAK,CAAC,+BAA+B,CAAC,CAAC;IAC1C,+CAA+C;IAC/C,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC;QACvD,KAAK,EAAE;YACL,oBAAoB,EAAE;gBACpB,SAAS,EAAE,KAAK;gBAChB,UAAU,EAAE,WAAW;aACxB;SACF;KACF,CAAC,CAAC;IAEH,IAAI,YAAY,KAAK,IAAI,EAAE,CAAC;QAC1B,MAAM,IAAI,eAAe,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC;IAClE,CAAC;IAED,cAAc;IACd,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;QACpC,IAAI,EAAE;YACJ,KAAK;YACL,QAAQ,EAAE;gBACR,MAAM,EAAE;oBACN,SAAS,EAAE,KAAK;oBAChB,UAAU,EAAE,WAAW;oBACvB,QAAQ,EAAE,MAAM,kBAAkB,CAAC,QAAQ,CAAC;iBAC7C;aACF;SACF;KACF,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,gCAAgC,CAAC,EACrD,KAAK,EACL,OAAO,GAOR;IACC,gCAAgC;IAChC,MAAM,sBAAsB,EAAE,CAAC,cAAc,CAC3C,OAAO,CAAC,OAAO,CAAC,EAAE,EAClB,yDAAyD,EACzD,2BAA2B,CAC5B,CAAC;IAEF,MAAM,IAAI,GAAG,MAAM,8BAA8B,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;IAC7D,MAAM,OAAO,GAAG,MAAM,kBAAkB,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAEzE,sEAAsE;IACtE,wBAAwB,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAEvE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC3B,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,oCAAoC,CAAC,EACzD,KAAK,EACL,OAAO,GAOR;IACC,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,mBAAmB;SAClD,UAAU,CAAC,KAAK,CAAC;SACjB,KAAK,CAAC,+BAA+B,CAAC,CAAC;IAE1C,sBAAsB;IACtB,MAAM,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;IACpC,MAAM,UAAU,GAAG,GAAG,KAAK,IAAI,QAAQ,EAAE,CAAC;IAE1C,0DAA0D;IAC1D,MAAM,iBAAiB,EAAE,CAAC,cAAc,CACtC,QAAQ,EACR,kDAAkD,EAClD,uBAAuB,CACxB,CAAC;IAEF,sEAAsE;IACtE,MAAM,sBAAsB,GAC1B,MAAM,+BAA+B,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAE1D,IAAI,sBAAsB,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE,CAAC;QAC9D,MAAM,IAAI,oBAAoB,CAC5B,qFAAqF,EACrF,iCAAiC,EACjC,EAAE,YAAY,EAAE,sBAAsB,CAAC,YAAY,EAAE,CACtD,CAAC;IACJ,CAAC;IAED,uCAAuC;IACvC,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,UAAU,CAAC;QACtD,KAAK,EAAE;YACL,oBAAoB,EAAE;gBACpB,SAAS,EAAE,KAAK;gBAChB,UAAU,EAAE,WAAW;aACxB;SACF;KACF,CAAC,CAAC;IAEH,2BAA2B;IAC3B,MAAM,OAAO,GAAG,MAAM,kBAAkB,CACtC,WAAW,EAAE,QAAQ,IAAI,EAAE,EAC3B,QAAQ,CACT,CAAC;IACF,IAAI,CAAC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;QAC7B,uBAAuB;QACvB,MAAM,+BAA+B,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;QAC5D,MAAM,IAAI,eAAe,CACvB,2BAA2B,EAC3B,qBAAqB,CACtB,CAAC;IACJ,CAAC;IAED,iDAAiD;IACjD,MAAM,+BAA+B,EAAE,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAE3D,MAAM,OAAO,GAAG,MAAM,kBAAkB,CAAC,aAAa,CACpD,WAAW,CAAC,MAAM,EAClB,OAAO,CACR,CAAC;IAEF,OAAO,EAAE,OAAO,EAAE,CAAC;AACrB,CAAC;AAED,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC;IAC3D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC;CAC1E,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,EACvC,MAAM,EACN,KAAK,GAON;IACC,MAAM,EAAE,eAAe,EAAE,WAAW,EAAE,GAAG,MAAM,oBAAoB;SAChE,UAAU,CAAC,KAAK,CAAC;SACjB,KAAK,CAAC,+BAA+B,CAAC,CAAC;IAE1C,yBAAyB;IACzB,MAAM,WAAW,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC;QACrD,KAAK,EAAE;YACL,MAAM;YACN,UAAU,EAAE,WAAW;SACxB;KACF,CAAC,CAAC;IAEH,0BAA0B;IAC1B,MAAM,OAAO,GAAG,MAAM,kBAAkB,CACtC,WAAW,EAAE,QAAQ,IAAI,EAAE,EAC3B,eAAe,CAChB,CAAC;IACF,IAAI,CAAC,OAAO,IAAI,CAAC,WAAW,EAAE,CAAC;QAC7B,MAAM,IAAI,eAAe,CACvB,+BAA+B,EAC/B,0BAA0B,CAC3B,CAAC;IACJ,CAAC;IAED,yBAAyB;IACzB,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC;QAC9B,KAAK,EAAE;YACL,oBAAoB,EAAE;gBACpB,SAAS,EAAE,WAAW,CAAC,SAAS;gBAChC,UAAU,EAAE,WAAW;aACxB;SACF;QACD,IAAI,EAAE;YACJ,QAAQ,EAAE,MAAM,kBAAkB,CAAC,WAAW,CAAC;SAChD;KACF,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC;QACnC,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE;KACtB,CAAC,CAAC;AACL,CAAC;AAED,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,GAAG,CAAC,mBAAmB,CAAC;CAC1E,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAAC,EACtC,MAAM,EACN,KAAK,GAMN;IACC,MAAM,EAAE,WAAW,EAAE,GAAG,MAAM,mBAAmB;SAC9C,UAAU,CAAC,KAAK,CAAC;SACjB,KAAK,CAAC,+BAA+B,CAAC,CAAC;IAE1C,uBAAuB;IACvB,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;QACxC,KAAK,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE;KACtB,CAAC,CAAC;IAEH,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAClB,MAAM,IAAI,aAAa,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,CAAC;IAC9D,CAAC;IAED,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QAChB,MAAM,IAAI,eAAe,CAAC,mBAAmB,EAAE,mBAAmB,CAAC,CAAC;IACtE,CAAC;IAED,4CAA4C;IAC5C,MAAM,YAAY,GAAG,MAAM,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC3D,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC;QAC9B,KAAK,EAAE;YACL,oBAAoB,EAAE;gBACpB,SAAS,EAAE,IAAI,CAAC,KAAK;gBACrB,UAAU,EAAE,WAAW;aACxB;SACF;QACD,MAAM,EAAE;YACN,IAAI,EAAE;gBACJ,OAAO,EAAE;oBACP,EAAE,EAAE,MAAM;iBACX;aACF;YACD,SAAS,EAAE,IAAI,CAAC,KAAK;YACrB,UAAU,EAAE,WAAW;YACvB,QAAQ,EAAE,YAAY;SACvB;QACD,MAAM,EAAE;YACN,QAAQ,EAAE,YAAY;SACvB;KACF,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
import type { User } from '%prismaGeneratedImports';
|
|
4
|
+
import type { RequestServiceContext } from '%requestServiceContextImports';
|
|
5
|
+
import type { UserSessionPayload } from '%userSessionTypesImports';
|
|
6
|
+
|
|
7
|
+
import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH } from '$constantsPassword';
|
|
8
|
+
import { requestEmailVerification } from '$servicesEmailVerification';
|
|
9
|
+
import {
|
|
10
|
+
BadRequestError,
|
|
11
|
+
handleZodRequestValidationError,
|
|
12
|
+
logError,
|
|
13
|
+
NotFoundError,
|
|
14
|
+
TooManyRequestsError,
|
|
15
|
+
} from '%errorHandlerServiceImports';
|
|
16
|
+
import {
|
|
17
|
+
createPasswordHash,
|
|
18
|
+
verifyPasswordHash,
|
|
19
|
+
} from '%passwordHasherServiceImports';
|
|
20
|
+
import { prisma } from '%prismaImports';
|
|
21
|
+
import { memoizeRateLimiter } from '%rateLimitImports';
|
|
22
|
+
import { userSessionService } from '%userSessionServiceImports';
|
|
23
|
+
import z from 'zod';
|
|
24
|
+
|
|
25
|
+
const PROVIDER_ID = 'email-password';
|
|
26
|
+
|
|
27
|
+
const emailPasswordSchema = z.object({
|
|
28
|
+
email: z
|
|
29
|
+
.email()
|
|
30
|
+
.max(PASSWORD_MAX_LENGTH)
|
|
31
|
+
.transform((value) => value.toLowerCase()),
|
|
32
|
+
password: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Rate limiters for authentication operations.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
const getRegistrationLimiter = memoizeRateLimiter('registration', {
|
|
40
|
+
points: 10,
|
|
41
|
+
duration: 60 * 60, // 1 hour
|
|
42
|
+
blockDuration: 60 * 60, // Block for 1 hour if exceeded
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const getLoginIpLimiter = memoizeRateLimiter('login-ip', {
|
|
46
|
+
points: 10,
|
|
47
|
+
duration: 60 * 60 * 24, // 24 hours
|
|
48
|
+
blockDuration: 60 * 60, // Block for 1 hour if exceeded
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
const getLoginConsecutiveFailsLimiter = memoizeRateLimiter(
|
|
52
|
+
'login-consecutive-fails',
|
|
53
|
+
{
|
|
54
|
+
points: 5,
|
|
55
|
+
duration: 60 * 60 * 24, // 24 hours (duration for tracking)
|
|
56
|
+
blockDuration: 60 * 15, // Block for 15 minutes after 5 consecutive fails
|
|
57
|
+
},
|
|
58
|
+
);
|
|
59
|
+
|
|
60
|
+
export async function createUserWithEmailAndPassword({
|
|
61
|
+
input,
|
|
62
|
+
}: {
|
|
63
|
+
input: {
|
|
64
|
+
email: string;
|
|
65
|
+
password: string;
|
|
66
|
+
};
|
|
67
|
+
}): Promise<User> {
|
|
68
|
+
const { email, password } = await emailPasswordSchema
|
|
69
|
+
.parseAsync(input)
|
|
70
|
+
.catch(handleZodRequestValidationError);
|
|
71
|
+
// check if user with that email already exists
|
|
72
|
+
const existingUser = await prisma.userAccount.findUnique({
|
|
73
|
+
where: {
|
|
74
|
+
accountId_providerId: {
|
|
75
|
+
accountId: email,
|
|
76
|
+
providerId: PROVIDER_ID,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
});
|
|
80
|
+
|
|
81
|
+
if (existingUser !== null) {
|
|
82
|
+
throw new BadRequestError('Email already taken', 'email-taken');
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// create user
|
|
86
|
+
const user = await prisma.user.create({
|
|
87
|
+
data: {
|
|
88
|
+
email,
|
|
89
|
+
accounts: {
|
|
90
|
+
create: {
|
|
91
|
+
accountId: email,
|
|
92
|
+
providerId: PROVIDER_ID,
|
|
93
|
+
password: await createPasswordHash(password),
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
return user;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export async function registerUserWithEmailAndPassword({
|
|
103
|
+
input,
|
|
104
|
+
context,
|
|
105
|
+
}: {
|
|
106
|
+
input: {
|
|
107
|
+
email: string;
|
|
108
|
+
password: string;
|
|
109
|
+
};
|
|
110
|
+
context: RequestServiceContext;
|
|
111
|
+
}): Promise<{ session: UserSessionPayload; user: User }> {
|
|
112
|
+
// Rate limit registration by IP
|
|
113
|
+
await getRegistrationLimiter().consumeOrThrow(
|
|
114
|
+
context.reqInfo.ip,
|
|
115
|
+
'Too many registration attempts. Please try again later.',
|
|
116
|
+
'registration-rate-limited',
|
|
117
|
+
);
|
|
118
|
+
|
|
119
|
+
const user = await createUserWithEmailAndPassword({ input });
|
|
120
|
+
const session = await userSessionService.createSession(user.id, context);
|
|
121
|
+
|
|
122
|
+
// Send verification email (fire-and-forget, don't block registration)
|
|
123
|
+
requestEmailVerification({ userId: user.id, context }).catch(logError);
|
|
124
|
+
|
|
125
|
+
return { session, user };
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export async function authenticateUserWithEmailAndPassword({
|
|
129
|
+
input,
|
|
130
|
+
context,
|
|
131
|
+
}: {
|
|
132
|
+
input: {
|
|
133
|
+
email: string;
|
|
134
|
+
password: string;
|
|
135
|
+
};
|
|
136
|
+
context: RequestServiceContext;
|
|
137
|
+
}): Promise<{ session: UserSessionPayload }> {
|
|
138
|
+
const { email, password } = await emailPasswordSchema
|
|
139
|
+
.parseAsync(input)
|
|
140
|
+
.catch(handleZodRequestValidationError);
|
|
141
|
+
|
|
142
|
+
// Rate limiting setup
|
|
143
|
+
const clientIp = context.reqInfo.ip;
|
|
144
|
+
const emailIpKey = `${email}_${clientIp}`;
|
|
145
|
+
|
|
146
|
+
// Check IP-based rate limit (slow brute force protection)
|
|
147
|
+
await getLoginIpLimiter().consumeOrThrow(
|
|
148
|
+
clientIp,
|
|
149
|
+
'Too many login attempts. Please try again later.',
|
|
150
|
+
'login-ip-rate-limited',
|
|
151
|
+
);
|
|
152
|
+
|
|
153
|
+
// Check consecutive failures rate limit (fast brute force protection)
|
|
154
|
+
const consecutiveFailsResult =
|
|
155
|
+
await getLoginConsecutiveFailsLimiter().get(emailIpKey);
|
|
156
|
+
|
|
157
|
+
if (consecutiveFailsResult && !consecutiveFailsResult.allowed) {
|
|
158
|
+
throw new TooManyRequestsError(
|
|
159
|
+
'Account temporarily locked due to too many failed attempts. Please try again later.',
|
|
160
|
+
'login-consecutive-fails-blocked',
|
|
161
|
+
{ retryAfterMs: consecutiveFailsResult.msBeforeNext },
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// check if user with that email exists
|
|
166
|
+
const userAccount = await prisma.userAccount.findUnique({
|
|
167
|
+
where: {
|
|
168
|
+
accountId_providerId: {
|
|
169
|
+
accountId: email,
|
|
170
|
+
providerId: PROVIDER_ID,
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
// check for password match
|
|
176
|
+
const isValid = await verifyPasswordHash(
|
|
177
|
+
userAccount?.password ?? '',
|
|
178
|
+
password,
|
|
179
|
+
);
|
|
180
|
+
if (!isValid || !userAccount) {
|
|
181
|
+
// Track failed attempt
|
|
182
|
+
await getLoginConsecutiveFailsLimiter().consume(emailIpKey);
|
|
183
|
+
throw new BadRequestError(
|
|
184
|
+
'Invalid email or password',
|
|
185
|
+
'invalid-credentials',
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
// Reset consecutive failures on successful login
|
|
190
|
+
await getLoginConsecutiveFailsLimiter().delete(emailIpKey);
|
|
191
|
+
|
|
192
|
+
const session = await userSessionService.createSession(
|
|
193
|
+
userAccount.userId,
|
|
194
|
+
context,
|
|
195
|
+
);
|
|
196
|
+
|
|
197
|
+
return { session };
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
const changePasswordSchema = z.object({
|
|
201
|
+
currentPassword: z.string().min(1).max(PASSWORD_MAX_LENGTH),
|
|
202
|
+
newPassword: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
|
|
203
|
+
});
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Change a user's password after validating their current password.
|
|
207
|
+
* This is used when a user wants to change their own password.
|
|
208
|
+
*
|
|
209
|
+
* @param params - The parameters for changing password
|
|
210
|
+
* @param params.userId - The ID of the user changing their password
|
|
211
|
+
* @param params.input - The current and new password
|
|
212
|
+
* @returns The updated user
|
|
213
|
+
*/
|
|
214
|
+
export async function changeUserPassword({
|
|
215
|
+
userId,
|
|
216
|
+
input,
|
|
217
|
+
}: {
|
|
218
|
+
userId: string;
|
|
219
|
+
input: {
|
|
220
|
+
currentPassword: string;
|
|
221
|
+
newPassword: string;
|
|
222
|
+
};
|
|
223
|
+
}): Promise<User> {
|
|
224
|
+
const { currentPassword, newPassword } = await changePasswordSchema
|
|
225
|
+
.parseAsync(input)
|
|
226
|
+
.catch(handleZodRequestValidationError);
|
|
227
|
+
|
|
228
|
+
// Get the user's account
|
|
229
|
+
const userAccount = await prisma.userAccount.findFirst({
|
|
230
|
+
where: {
|
|
231
|
+
userId,
|
|
232
|
+
providerId: PROVIDER_ID,
|
|
233
|
+
},
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
// Verify current password
|
|
237
|
+
const isValid = await verifyPasswordHash(
|
|
238
|
+
userAccount?.password ?? '',
|
|
239
|
+
currentPassword,
|
|
240
|
+
);
|
|
241
|
+
if (!isValid || !userAccount) {
|
|
242
|
+
throw new BadRequestError(
|
|
243
|
+
'Current password is incorrect',
|
|
244
|
+
'invalid-current-password',
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
// Update to new password
|
|
249
|
+
await prisma.userAccount.update({
|
|
250
|
+
where: {
|
|
251
|
+
accountId_providerId: {
|
|
252
|
+
accountId: userAccount.accountId,
|
|
253
|
+
providerId: PROVIDER_ID,
|
|
254
|
+
},
|
|
255
|
+
},
|
|
256
|
+
data: {
|
|
257
|
+
password: await createPasswordHash(newPassword),
|
|
258
|
+
},
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
return prisma.user.findUniqueOrThrow({
|
|
262
|
+
where: { id: userId },
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const resetPasswordSchema = z.object({
|
|
267
|
+
newPassword: z.string().min(PASSWORD_MIN_LENGTH).max(PASSWORD_MAX_LENGTH),
|
|
268
|
+
});
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* Reset a user's password without requiring the current password.
|
|
272
|
+
* This is used by administrators to reset any user's password.
|
|
273
|
+
*
|
|
274
|
+
* @param params - The parameters for resetting password
|
|
275
|
+
* @param params.userId - The ID of the user whose password is being reset
|
|
276
|
+
* @param params.input - The new password
|
|
277
|
+
* @returns The updated user
|
|
278
|
+
*/
|
|
279
|
+
export async function resetUserPassword({
|
|
280
|
+
userId,
|
|
281
|
+
input,
|
|
282
|
+
}: {
|
|
283
|
+
userId: string;
|
|
284
|
+
input: {
|
|
285
|
+
newPassword: string;
|
|
286
|
+
};
|
|
287
|
+
}): Promise<User> {
|
|
288
|
+
const { newPassword } = await resetPasswordSchema
|
|
289
|
+
.parseAsync(input)
|
|
290
|
+
.catch(handleZodRequestValidationError);
|
|
291
|
+
|
|
292
|
+
// Check if user exists
|
|
293
|
+
const user = await prisma.user.findUnique({
|
|
294
|
+
where: { id: userId },
|
|
295
|
+
});
|
|
296
|
+
|
|
297
|
+
if (user === null) {
|
|
298
|
+
throw new NotFoundError('User not found', 'user-not-found');
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
if (!user.email) {
|
|
302
|
+
throw new BadRequestError('User has no email', 'user-has-no-email');
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// Get or create the user's password account
|
|
306
|
+
const passwordHash = await createPasswordHash(newPassword);
|
|
307
|
+
await prisma.userAccount.upsert({
|
|
308
|
+
where: {
|
|
309
|
+
accountId_providerId: {
|
|
310
|
+
accountId: user.email,
|
|
311
|
+
providerId: PROVIDER_ID,
|
|
312
|
+
},
|
|
313
|
+
},
|
|
314
|
+
create: {
|
|
315
|
+
user: {
|
|
316
|
+
connect: {
|
|
317
|
+
id: userId,
|
|
318
|
+
},
|
|
319
|
+
},
|
|
320
|
+
accountId: user.email,
|
|
321
|
+
providerId: PROVIDER_ID,
|
|
322
|
+
password: passwordHash,
|
|
323
|
+
},
|
|
324
|
+
update: {
|
|
325
|
+
password: passwordHash,
|
|
326
|
+
},
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
return user;
|
|
330
|
+
}
|
package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generator for auth email templates.
|
|
3
|
+
*
|
|
4
|
+
* Registers auth-related email templates (password reset, password changed,
|
|
5
|
+
* account verification) with the transactional email library and generates
|
|
6
|
+
* the corresponding .tsx template files.
|
|
7
|
+
*/
|
|
8
|
+
export declare const authEmailTemplatesGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<Record<string, never>, {
|
|
9
|
+
paths: import("@baseplate-dev/sync").GeneratorTask<{
|
|
10
|
+
localAuthAuthEmailTemplatesPaths: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-paths.js").LocalAuthAuthEmailTemplatesPaths>;
|
|
11
|
+
}, {
|
|
12
|
+
packageInfo: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").PackageInfoProvider>;
|
|
13
|
+
}, undefined>;
|
|
14
|
+
renderers: import("@baseplate-dev/sync").GeneratorTask<{
|
|
15
|
+
localAuthAuthEmailTemplatesRenderers: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-renderers.js").LocalAuthAuthEmailTemplatesRenderers>;
|
|
16
|
+
}, {
|
|
17
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthAuthEmailTemplatesPaths>;
|
|
18
|
+
transactionalLibImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
19
|
+
Button: {};
|
|
20
|
+
defineEmail: {};
|
|
21
|
+
DefineEmailOptions: {
|
|
22
|
+
isTypeOnly: true;
|
|
23
|
+
};
|
|
24
|
+
Divider: {};
|
|
25
|
+
EmailComponent: {
|
|
26
|
+
isTypeOnly: true;
|
|
27
|
+
};
|
|
28
|
+
EmailLayout: {};
|
|
29
|
+
Heading: {};
|
|
30
|
+
renderEmail: {};
|
|
31
|
+
Section: {};
|
|
32
|
+
Text: {};
|
|
33
|
+
theme: {};
|
|
34
|
+
}>>;
|
|
35
|
+
typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
main: import("@baseplate-dev/sync").GeneratorTask<any, {
|
|
38
|
+
emailTemplates: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/plugin-email").EmailTemplatesProvider>;
|
|
39
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthAuthEmailTemplatesPaths>;
|
|
40
|
+
renderers: import("@baseplate-dev/sync").ProviderType<import("./generated/template-renderers.js").LocalAuthAuthEmailTemplatesRenderers>;
|
|
41
|
+
}, any>;
|
|
42
|
+
}>;
|
|
43
|
+
//# sourceMappingURL=auth-email-templates.generator.d.ts.map
|
package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-email-templates.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.ts"],"names":[],"mappings":"AAQA;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyCtC,CAAC"}
|
package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { emailTemplatesProvider } from '@baseplate-dev/plugin-email';
|
|
2
|
+
import { createGenerator, createGeneratorTask } from '@baseplate-dev/sync';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { LOCAL_AUTH_AUTH_EMAIL_TEMPLATES_GENERATED as GENERATED_TEMPLATES } from './generated/index.js';
|
|
5
|
+
const descriptorSchema = z.object({});
|
|
6
|
+
/**
|
|
7
|
+
* Generator for auth email templates.
|
|
8
|
+
*
|
|
9
|
+
* Registers auth-related email templates (password reset, password changed,
|
|
10
|
+
* account verification) with the transactional email library and generates
|
|
11
|
+
* the corresponding .tsx template files.
|
|
12
|
+
*/
|
|
13
|
+
export const authEmailTemplatesGenerator = createGenerator({
|
|
14
|
+
name: 'local-auth/auth-email-templates',
|
|
15
|
+
generatorFileUrl: import.meta.url,
|
|
16
|
+
descriptorSchema,
|
|
17
|
+
buildTasks: () => ({
|
|
18
|
+
paths: GENERATED_TEMPLATES.paths.task,
|
|
19
|
+
renderers: GENERATED_TEMPLATES.renderers.task,
|
|
20
|
+
main: createGeneratorTask({
|
|
21
|
+
dependencies: {
|
|
22
|
+
emailTemplates: emailTemplatesProvider,
|
|
23
|
+
paths: GENERATED_TEMPLATES.paths.provider,
|
|
24
|
+
renderers: GENERATED_TEMPLATES.renderers.provider,
|
|
25
|
+
},
|
|
26
|
+
run({ emailTemplates, paths, renderers }) {
|
|
27
|
+
emailTemplates.registerExport({
|
|
28
|
+
exportName: 'AccountVerificationEmail',
|
|
29
|
+
exportPath: paths.accountVerificationEmail,
|
|
30
|
+
});
|
|
31
|
+
emailTemplates.registerExport({
|
|
32
|
+
exportName: 'PasswordChangedEmail',
|
|
33
|
+
exportPath: paths.passwordChangedEmail,
|
|
34
|
+
});
|
|
35
|
+
emailTemplates.registerExport({
|
|
36
|
+
exportName: 'PasswordResetEmail',
|
|
37
|
+
exportPath: paths.passwordResetEmail,
|
|
38
|
+
});
|
|
39
|
+
return {
|
|
40
|
+
build: async (builder) => {
|
|
41
|
+
await builder.apply(renderers.accountVerificationEmail.render({}), renderers.passwordChangedEmail.render({}), renderers.passwordResetEmail.render({}));
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
}),
|
|
46
|
+
}),
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=auth-email-templates.generator.js.map
|
package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-email-templates.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,yCAAyC,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAExG,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC;IACzD,IAAI,EAAE,iCAAiC;IACvC,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI;QACrC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,IAAI;QAC7C,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,cAAc,EAAE,sBAAsB;gBACtC,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,QAAQ;gBACzC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE,SAAS,EAAE;gBACtC,cAAc,CAAC,cAAc,CAAC;oBAC5B,UAAU,EAAE,0BAA0B;oBACtC,UAAU,EAAE,KAAK,CAAC,wBAAwB;iBAC3C,CAAC,CAAC;gBAEH,cAAc,CAAC,cAAc,CAAC;oBAC5B,UAAU,EAAE,sBAAsB;oBAClC,UAAU,EAAE,KAAK,CAAC,oBAAoB;iBACvC,CAAC,CAAC;gBAEH,cAAc,CAAC,cAAc,CAAC;oBAC5B,UAAU,EAAE,oBAAoB;oBAChC,UAAU,EAAE,KAAK,CAAC,kBAAkB;iBACrC,CAAC,CAAC;gBAEH,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC,EAC7C,SAAS,CAAC,oBAAoB,CAAC,MAAM,CAAC,EAAE,CAAC,EACzC,SAAS,CAAC,kBAAkB,CAAC,MAAM,CAAC,EAAE,CAAC,CACxC,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|