@baseplate-dev/plugin-auth 4.0.2 → 5.0.0
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 +59 -0
- package/README.md +3 -3
- package/dist/auth/core/node.d.ts.map +1 -1
- package/dist/auth/core/node.js +2 -1
- package/dist/auth/core/node.js.map +1 -1
- package/dist/auth/core/schema/plugin-definition.d.ts +2 -12
- package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth/core/schema/roles/schema.d.ts +2 -12
- package/dist/auth/core/schema/roles/schema.d.ts.map +1 -1
- package/dist/auth/core/schema/roles/schema.js +10 -17
- package/dist/auth/core/schema/roles/schema.js.map +1 -1
- package/dist/auth/plugin.json +1 -1
- 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.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/{auth0/core/components/auth0-definition-editor.js → better-auth/core/components/better-auth-definition-editor.js} +17 -17
- 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.map +1 -0
- package/dist/{auth0 → better-auth}/core/node.js +16 -14
- 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.map +1 -0
- package/dist/{auth0 → better-auth}/core/web.js +2 -2
- package/dist/better-auth/core/web.js.map +1 -0
- package/dist/{auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts → better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts} +20 -26
- 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/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/index.d.ts +41 -26
- 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/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/template-renderers.d.ts +16 -10
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts.map +1 -0
- package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/template-renderers.js +35 -16
- 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/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/typed-templates.d.ts +29 -20
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/generated/typed-templates.js +37 -9
- 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/{auth0/generators/fastify/auth0-module → better-auth/generators/fastify/better-auth-module}/templates/module/schema/user-session.queries.ts +1 -1
- 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/{auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts → better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts} +11 -7
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks/auth0-hooks.generator.js → better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js} +8 -8
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.js.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/index.d.ts +21 -8
- 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/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/template-paths.js +9 -7
- 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/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/ts-import-providers.d.ts +2 -2
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/ts-import-providers.js +5 -5
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/typed-templates.d.ts +21 -3
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts.map +1 -0
- package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/generated/typed-templates.js +7 -3
- 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 +18 -0
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/use-session.ts +30 -0
- package/dist/{auth0/generators/react/auth0-pages/auth0-pages.generator.d.ts → better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts} +15 -6
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts.map +1 -0
- package/dist/{auth0/generators/react/auth0-pages/auth0-pages.generator.js → better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js} +7 -7
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.js.map +1 -0
- package/dist/{auth0/generators/react/auth0-pages → better-auth/generators/react/better-auth-pages}/generated/index.d.ts +246 -6
- package/dist/{auth0/generators/react/auth0-pages → better-auth/generators/react/better-auth-pages}/generated/index.d.ts.map +1 -1
- 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/{auth0/generators/react/react-auth0 → better-auth/generators/react/better-auth-pages}/generated/template-renderers.d.ts +13 -9
- 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 +895 -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/auth/login.tsx +146 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/auth/register.tsx +162 -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/{auth0/generators/react/react-auth0 → better-auth/generators/react/react-better-auth}/generated/index.d.ts +42 -7
- package/dist/{auth0/generators/react/react-auth0 → better-auth/generators/react/react-better-auth}/generated/index.d.ts.map +1 -1
- 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/{auth0/generators/react/auth0-pages → better-auth/generators/react/react-better-auth}/generated/template-renderers.d.ts +28 -9
- 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/{auth0/generators/react/react-auth0 → better-auth/generators/react/react-better-auth}/generated/typed-templates.d.ts +16 -2
- 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/{auth0/generators/react/react-auth0/react-auth0.generator.d.ts → better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts} +28 -25
- 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 +58 -0
- package/dist/better-auth/generators/react/react-better-auth/templates/src/services/auth-client.ts +15 -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/index.d.ts +1 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -1
- package/dist/local-auth/core/components/local-auth-definition-editor.js +11 -11
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -1
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts +2 -2
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +8 -4
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +13 -3
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +24 -14
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js +0 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +3 -3
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +1 -11
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +34 -16
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +6 -23
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/password-reset.mutations.ts +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +3 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +9 -5
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +11 -9
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +11 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +25 -4
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +24 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +2 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +25 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +6 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +18 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +30 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -1
- 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/services/auth-verification.service.d.ts.map +1 -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-routes/templates/routes/auth_/login.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +34 -15
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +58 -15
- package/dist/local-auth/core/node.d.ts.map +1 -1
- package/dist/local-auth/core/node.js +8 -6
- package/dist/local-auth/core/node.js.map +1 -1
- package/dist/local-auth/core/schema/models.d.ts +2 -4
- package/dist/local-auth/core/schema/models.d.ts.map +1 -1
- package/dist/local-auth/core/schema/models.js +254 -252
- package/dist/local-auth/core/schema/models.js.map +1 -1
- package/dist/local-auth/core/schema/plugin-definition.d.ts +2 -2
- 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 +11 -11
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
- package/dist/placeholder-auth/core/schema/models.d.ts +2 -4
- package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/models.js +30 -28
- package/dist/placeholder-auth/core/schema/models.js.map +1 -1
- package/dist/web/assets/{__federation_expose_authCoreCommon-D3-Gk9mI.js → __federation_expose_authCoreCommon-CIVhaGqo.js} +3 -3
- package/dist/web/assets/{__federation_expose_authCoreCommon-D3-Gk9mI.js.map → __federation_expose_authCoreCommon-CIVhaGqo.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreWeb-DZoAij9e.js → __federation_expose_authCoreWeb-N-mh42Bs.js} +6 -6
- package/dist/web/assets/{__federation_expose_authCoreWeb-DZoAij9e.js.map → __federation_expose_authCoreWeb-N-mh42Bs.js.map} +1 -1
- package/dist/web/assets/__federation_expose_better-authCoreCommon-BIU3Fg7K.js +20 -0
- package/dist/web/assets/__federation_expose_better-authCoreCommon-BIU3Fg7K.js.map +1 -0
- package/dist/web/assets/__federation_expose_better-authCoreWeb-CMhPrXPA.js +402 -0
- package/dist/web/assets/__federation_expose_better-authCoreWeb-CMhPrXPA.js.map +1 -0
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-BRHnF0Hn.js → __federation_expose_local-authAdminCommon-DvHe9w29.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-BRHnF0Hn.js.map → __federation_expose_local-authAdminCommon-DvHe9w29.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-dYAIxuqC.js → __federation_expose_local-authAdminWeb-CLU9aEy9.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-dYAIxuqC.js.map → __federation_expose_local-authAdminWeb-CLU9aEy9.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-CIwvOx0d.js → __federation_expose_local-authCoreCommon-DbuvGG7o.js} +3 -3
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-CIwvOx0d.js.map → __federation_expose_local-authCoreCommon-DbuvGG7o.js.map} +1 -1
- package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js +432 -0
- package/dist/web/assets/__federation_expose_local-authCoreWeb-BY-mP3uS.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-gFDSzGjB.js → __federation_expose_placeholder-authCoreCommon-BJBCuZvU.js} +3 -3
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-gFDSzGjB.js.map → __federation_expose_placeholder-authCoreCommon-BJBCuZvU.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-BZLwIkLk.js → __federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js} +61 -53
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BaV-Ko2C.js.map +1 -0
- package/dist/web/assets/{__federation_fn_import-pxYUpmb_.js → __federation_fn_import-BLFDCY-V.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-pxYUpmb_.js.map → __federation_fn_import-BLFDCY-V.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-BXi2UCP-.js → web-bRU6KpPk.js} +48 -26
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-bRU6KpPk.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-O0clDXMb.js → project-builder-lib-CQKLkNsU.js} +5705 -1957
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CQKLkNsU.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-BpuFQk6s.js → ui-components-DhyoEUTy.js} +5889 -1194
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DhyoEUTy.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-UiZ-8JBg.js → utils-9w-0yxVZ.js} +64 -45
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-9w-0yxVZ.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-BPEAtEJI.js → react-router-CbExBaoL.js} +2 -2
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-BPEAtEJI.js.map → react-router-CbExBaoL.js.map} +1 -1
- package/dist/web/assets/{__federation_shared_zod-B6wbpZ4f.js → __federation_shared_zod-Do7Aa1b5.js} +3431 -2188
- package/dist/web/assets/__federation_shared_zod-Do7Aa1b5.js.map +1 -0
- package/dist/web/assets/{get-auth-plugin-definition-DPsrvQbo.js → get-auth-plugin-definition-BL50g0cJ.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-DPsrvQbo.js.map → get-auth-plugin-definition-BL50g0cJ.js.map} +1 -1
- package/dist/web/assets/{index-CSfs0UAV.js → index-B_A3cgiy.js} +2 -2
- package/dist/web/assets/{index-CSfs0UAV.js.map → index-B_A3cgiy.js.map} +1 -1
- package/dist/web/assets/{index.esm-BoRQu8mM.js → index.esm-BraHxHLB.js} +338 -231
- package/dist/web/assets/index.esm-BraHxHLB.js.map +1 -0
- package/dist/web/assets/{isEqual-BQtm2LNT.js → isEqual-tnzoadW8.js} +18 -18
- package/dist/web/assets/isEqual-tnzoadW8.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-utils-BfcjfzCn.js +694 -0
- package/dist/web/assets/model-utils-BfcjfzCn.js.map +1 -0
- package/dist/web/assets/plugin-definition-CXnKUJ1l.js +20 -0
- package/dist/web/assets/plugin-definition-CXnKUJ1l.js.map +1 -0
- package/dist/web/assets/{plugin-definition-DRhTuQas.js → plugin-definition-Ckl5hjD1.js} +2 -2
- package/dist/web/assets/{plugin-definition-DRhTuQas.js.map → plugin-definition-Ckl5hjD1.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-BMYDEj3f.js → plugin-definition-D26rR8AB.js} +2 -2
- package/dist/web/assets/{plugin-definition-BMYDEj3f.js.map → plugin-definition-D26rR8AB.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-j1nJ0FFI.js → plugin-definition-DJzXScRp.js} +12 -19
- package/dist/web/assets/plugin-definition-DJzXScRp.js.map +1 -0
- package/dist/web/assets/{react-CBhSWxr_.js → react-CL9M_wyN.js} +2 -2
- package/dist/web/assets/{react-CBhSWxr_.js.map → react-CL9M_wyN.js.map} +1 -1
- package/dist/web/assets/{registries-19UehlAo.js → registries-Tz_dluz3.js} +51 -13
- package/dist/web/assets/registries-Tz_dluz3.js.map +1 -0
- package/dist/web/assets/remoteEntry.js +14 -14
- package/dist/web/assets/{styles-BbHyE-2h.js → styles-tkrWV-ZE.js} +4 -4
- package/dist/web/assets/{styles-BbHyE-2h.js.map → styles-tkrWV-ZE.js.map} +1 -1
- package/package.json +17 -16
- package/dist/auth0/constants/model-names.d.ts +0 -4
- package/dist/auth0/constants/model-names.d.ts.map +0 -1
- package/dist/auth0/constants/model-names.js +0 -4
- package/dist/auth0/constants/model-names.js.map +0 -1
- 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.map +0 -1
- package/dist/auth0/core/common.js +0 -19
- package/dist/auth0/core/common.js.map +0 -1
- package/dist/auth0/core/components/auth0-definition-editor.d.ts +0 -5
- package/dist/auth0/core/components/auth0-definition-editor.d.ts.map +0 -1
- package/dist/auth0/core/components/auth0-definition-editor.js.map +0 -1
- package/dist/auth0/core/node.d.ts.map +0 -1
- 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 -5
- package/dist/auth0/core/schema/models.d.ts.map +0 -1
- package/dist/auth0/core/schema/models.js +0 -40
- package/dist/auth0/core/schema/models.js.map +0 -1
- package/dist/auth0/core/schema/plugin-definition.d.ts +0 -5
- package/dist/auth0/core/schema/plugin-definition.d.ts.map +0 -1
- package/dist/auth0/core/schema/plugin-definition.js +0 -4
- package/dist/auth0/core/schema/plugin-definition.js.map +0 -1
- package/dist/auth0/core/web.d.ts.map +0 -1
- package/dist/auth0/core/web.js.map +0 -1
- 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 -114
- 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.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 -14
- 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 -24
- 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.map +0 -1
- 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.map +0 -1
- 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.map +0 -1
- 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.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 -14
- 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.map +0 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +0 -23
- 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 -38
- 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.map +0 -1
- 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.map +0 -1
- 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-log-out.ts +0 -14
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-session.ts +0 -36
- 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.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.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 -433
- 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.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.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.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.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/plugin.json +0 -9
- package/dist/auth0/static/icon.svg +0 -7
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts.map +0 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DKJVe6Rd.js +0 -40
- package/dist/web/assets/__federation_expose_auth0CoreCommon-DKJVe6Rd.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreWeb-CfhSWZsK.js +0 -158
- package/dist/web/assets/__federation_expose_auth0CoreWeb-CfhSWZsK.js.map +0 -1
- package/dist/web/assets/__federation_expose_local-authCoreWeb-Bwooi2qZ.js +0 -424
- package/dist/web/assets/__federation_expose_local-authCoreWeb-Bwooi2qZ.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BZLwIkLk.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXi2UCP-.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-UiZ-8JBg.js.map +0 -1
- package/dist/web/assets/__federation_shared_zod-B6wbpZ4f.js.map +0 -1
- package/dist/web/assets/index.esm-BoRQu8mM.js.map +0 -1
- package/dist/web/assets/isEqual-BQtm2LNT.js.map +0 -1
- package/dist/web/assets/model-merger-CdjliK9v.js +0 -1705
- package/dist/web/assets/model-merger-CdjliK9v.js.map +0 -1
- package/dist/web/assets/plugin-definition-BG6tu7Hh.js +0 -16
- package/dist/web/assets/plugin-definition-BG6tu7Hh.js.map +0 -1
- package/dist/web/assets/plugin-definition-j1nJ0FFI.js.map +0 -1
- package/dist/web/assets/registries-19UehlAo.js.map +0 -1
- package/dist/web/assets/sortBy-BPH_zRB8.js +0 -34
- package/dist/web/assets/sortBy-BPH_zRB8.js.map +0 -1
- /package/dist/{auth0 → better-auth}/core/common.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/core/node.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/core/web.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/generators/index.d.ts +0 -0
- /package/dist/{auth0 → better-auth}/generators/index.js +0 -0
- /package/dist/{auth0/generators/react/auth0-hooks → better-auth/generators/react/better-auth-hooks}/templates/src/hooks/use-required-user-id.ts +0 -0
- /package/dist/local-auth/core/generators/{auth-email-password → auth-module}/templates/module/services/auth-verification.service.d.ts +0 -0
- /package/dist/local-auth/core/generators/{auth-email-password → auth-module}/templates/module/services/auth-verification.service.js +0 -0
- /package/dist/local-auth/core/generators/{auth-email-password → auth-module}/templates/module/services/auth-verification.service.ts +0 -0
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { PASSWORD_MAX_LENGTH, PASSWORD_MIN_LENGTH, PASSWORD_RESET_TOKEN_EXPIRY_SEC, } from '$constantsPassword';
|
|
3
|
-
import { createAuthVerification, validateAuthVerification, } from '
|
|
3
|
+
import { createAuthVerification, validateAuthVerification, } from '%authModuleImports';
|
|
4
4
|
import { config } from '%configServiceImports';
|
|
5
5
|
import { sendEmail } from '%emailModuleImports';
|
|
6
6
|
import { BadRequestError, handleZodRequestValidationError, } from '%errorHandlerServiceImports';
|
|
7
7
|
import { createPasswordHash } from '%passwordHasherServiceImports';
|
|
8
8
|
import { prisma } from '%prismaImports';
|
|
9
9
|
import { memoizeRateLimiter } from '%rateLimitImports';
|
|
10
|
-
import { PasswordChangedEmail, PasswordResetEmail, } from '@blog-with-auth/transactional';
|
|
11
10
|
import z from 'zod';
|
|
12
11
|
const PROVIDER_ID = 'email-password';
|
|
13
12
|
const PASSWORD_RESET_TYPE = 'password-reset';
|
|
@@ -61,7 +60,7 @@ export async function requestPasswordReset({ email: rawEmail, context, }) {
|
|
|
61
60
|
// Construct reset URL using configured domain
|
|
62
61
|
const resetLink = `${config.AUTH_FRONTEND_URL}/auth/reset-password?token=${encodeURIComponent(token)}`;
|
|
63
62
|
// Send email asynchronously (queue-based)
|
|
64
|
-
await sendEmail(
|
|
63
|
+
await sendEmail(TPL_PASSWORD_RESET_EMAIL, {
|
|
65
64
|
to: user.email,
|
|
66
65
|
data: { resetLink },
|
|
67
66
|
});
|
|
@@ -75,6 +74,8 @@ const validateTokenSchema = z.object({
|
|
|
75
74
|
/**
|
|
76
75
|
* Validates a password reset token without consuming it.
|
|
77
76
|
* Used by the frontend to verify the token is valid before showing the reset form.
|
|
77
|
+
*
|
|
78
|
+
* @throws BadRequestError with code 'invalid-token' if the token is invalid or expired
|
|
78
79
|
*/
|
|
79
80
|
export async function validatePasswordResetToken({ token: rawToken, }) {
|
|
80
81
|
const { token } = await validateTokenSchema
|
|
@@ -84,7 +85,10 @@ export async function validatePasswordResetToken({ token: rawToken, }) {
|
|
|
84
85
|
type: PASSWORD_RESET_TYPE,
|
|
85
86
|
token,
|
|
86
87
|
});
|
|
87
|
-
|
|
88
|
+
if (!record) {
|
|
89
|
+
throw new BadRequestError('Invalid or expired token', 'invalid-token');
|
|
90
|
+
}
|
|
91
|
+
return { success: true };
|
|
88
92
|
}
|
|
89
93
|
const completePasswordResetSchema = z.object({
|
|
90
94
|
token: z.string().min(1).max(PASSWORD_MAX_LENGTH),
|
|
@@ -148,7 +152,7 @@ export async function completePasswordReset({ token: rawToken, newPassword: rawN
|
|
|
148
152
|
}),
|
|
149
153
|
]);
|
|
150
154
|
// Send password changed confirmation email
|
|
151
|
-
await sendEmail(
|
|
155
|
+
await sendEmail(TPL_PASSWORD_CHANGED_EMAIL, {
|
|
152
156
|
to: user.email,
|
|
153
157
|
data: {},
|
|
154
158
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"password-reset.service.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,GAChC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,
|
|
1
|
+
{"version":3,"file":"password-reset.service.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,+BAA+B,GAChC,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,sBAAsB,EACtB,wBAAwB,GACzB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,O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KACH,CAAC,CAAC;IAEH,2CAA2C;IAC3C,MAAM,SAAS,CAAC,0BAA0B,EAAE;QAC1C,EAAE,EAAE,IAAI,CAAC,KAAK;QACd,IAAI,EAAE,EAAE;KACT,CAAC,CAAC;IAEH,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;AAC3B,CAAC"}
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
createAuthVerification,
|
|
12
12
|
validateAuthVerification,
|
|
13
|
-
} from '
|
|
13
|
+
} from '%authModuleImports';
|
|
14
14
|
import { config } from '%configServiceImports';
|
|
15
15
|
import { sendEmail } from '%emailModuleImports';
|
|
16
16
|
import {
|
|
@@ -20,10 +20,6 @@ import {
|
|
|
20
20
|
import { createPasswordHash } from '%passwordHasherServiceImports';
|
|
21
21
|
import { prisma } from '%prismaImports';
|
|
22
22
|
import { memoizeRateLimiter } from '%rateLimitImports';
|
|
23
|
-
import {
|
|
24
|
-
PasswordChangedEmail,
|
|
25
|
-
PasswordResetEmail,
|
|
26
|
-
} from '@blog-with-auth/transactional';
|
|
27
23
|
import z from 'zod';
|
|
28
24
|
|
|
29
25
|
const PROVIDER_ID = 'email-password';
|
|
@@ -113,7 +109,7 @@ export async function requestPasswordReset({
|
|
|
113
109
|
const resetLink = `${config.AUTH_FRONTEND_URL}/auth/reset-password?token=${encodeURIComponent(token)}`;
|
|
114
110
|
|
|
115
111
|
// Send email asynchronously (queue-based)
|
|
116
|
-
await sendEmail(
|
|
112
|
+
await sendEmail(TPL_PASSWORD_RESET_EMAIL, {
|
|
117
113
|
to: user.email,
|
|
118
114
|
data: { resetLink },
|
|
119
115
|
});
|
|
@@ -130,12 +126,14 @@ const validateTokenSchema = z.object({
|
|
|
130
126
|
/**
|
|
131
127
|
* Validates a password reset token without consuming it.
|
|
132
128
|
* Used by the frontend to verify the token is valid before showing the reset form.
|
|
129
|
+
*
|
|
130
|
+
* @throws BadRequestError with code 'invalid-token' if the token is invalid or expired
|
|
133
131
|
*/
|
|
134
132
|
export async function validatePasswordResetToken({
|
|
135
133
|
token: rawToken,
|
|
136
134
|
}: {
|
|
137
135
|
token: string;
|
|
138
|
-
}): Promise<{
|
|
136
|
+
}): Promise<{ success: true }> {
|
|
139
137
|
const { token } = await validateTokenSchema
|
|
140
138
|
.parseAsync({ token: rawToken })
|
|
141
139
|
.catch(handleZodRequestValidationError);
|
|
@@ -145,7 +143,11 @@ export async function validatePasswordResetToken({
|
|
|
145
143
|
token,
|
|
146
144
|
});
|
|
147
145
|
|
|
148
|
-
|
|
146
|
+
if (!record) {
|
|
147
|
+
throw new BadRequestError('Invalid or expired token', 'invalid-token');
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
return { success: true };
|
|
149
151
|
}
|
|
150
152
|
|
|
151
153
|
const completePasswordResetSchema = z.object({
|
|
@@ -224,7 +226,7 @@ export async function completePasswordReset({
|
|
|
224
226
|
]);
|
|
225
227
|
|
|
226
228
|
// Send password changed confirmation email
|
|
227
|
-
await sendEmail(
|
|
229
|
+
await sendEmail(TPL_PASSWORD_CHANGED_EMAIL, {
|
|
228
230
|
to: user.email,
|
|
229
231
|
data: {},
|
|
230
232
|
});
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const authModuleGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{
|
|
2
2
|
userAdminRoles?: string[] | undefined;
|
|
3
|
+
devWebPorts?: number[] | undefined;
|
|
3
4
|
}, {
|
|
4
5
|
paths: import("@baseplate-dev/sync").GeneratorTask<{
|
|
5
6
|
localAuthCoreAuthModulePaths: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-paths.js").LocalAuthCoreAuthModulePaths>;
|
|
@@ -8,7 +9,10 @@ export declare const authModuleGenerator: import("@baseplate-dev/sync").Generato
|
|
|
8
9
|
}, undefined>;
|
|
9
10
|
imports: import("@baseplate-dev/sync").GeneratorTask<{
|
|
10
11
|
authModuleImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
12
|
+
cleanupExpiredAuthVerifications: {};
|
|
13
|
+
createAuthVerification: {};
|
|
11
14
|
userSessionPayload: {};
|
|
15
|
+
validateAuthVerification: {};
|
|
12
16
|
}>>;
|
|
13
17
|
userSessionServiceImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
14
18
|
userSessionService: {};
|
|
@@ -72,6 +76,9 @@ export declare const authModuleGenerator: import("@baseplate-dev/sync").Generato
|
|
|
72
76
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
73
77
|
prisma: {};
|
|
74
78
|
}>>;
|
|
79
|
+
queueServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
80
|
+
createQueue: {};
|
|
81
|
+
}>>;
|
|
75
82
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
76
83
|
createContextFromRequest: {};
|
|
77
84
|
RequestServiceContext: {
|
|
@@ -101,6 +108,10 @@ export declare const authModuleGenerator: import("@baseplate-dev/sync").Generato
|
|
|
101
108
|
prismaOutput: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/fastify-generators").PrismaOutputProvider>;
|
|
102
109
|
renderers: import("@baseplate-dev/sync").ProviderType<import("./generated/template-renderers.js").LocalAuthCoreAuthModuleRenderers>;
|
|
103
110
|
userObjectType: import("@baseplate-dev/sync").ProviderDependency<import("@baseplate-dev/fastify-generators").PothosTypeOutputProvider>;
|
|
111
|
+
queueConfig: import("@baseplate-dev/sync").ProviderDependency<Omit<import("@baseplate-dev/utils").FieldMap<{
|
|
112
|
+
queues: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/core-generators").TsCodeFragment>;
|
|
113
|
+
}>, "getValues"> | undefined>;
|
|
114
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthCoreAuthModulePaths>;
|
|
104
115
|
}, any>;
|
|
105
116
|
}>;
|
|
106
117
|
//# sourceMappingURL=auth-module.generator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-module.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-module/auth-module.generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth-module.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-module/auth-module.generator.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8H9B,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { tsCodeFragment, TsCodeUtils } from '@baseplate-dev/core-generators';
|
|
2
2
|
import { appModuleProvider, configServiceProvider, createPothosPrismaObjectTypeOutputName, pothosTypeOutputProvider, prismaOutputProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
|
+
import { queueConfigProvider } from '@baseplate-dev/plugin-queue';
|
|
3
4
|
import { createGenerator, createGeneratorTask, createProviderTask, } from '@baseplate-dev/sync';
|
|
4
5
|
import { quot } from '@baseplate-dev/utils';
|
|
5
6
|
import { z } from 'zod';
|
|
@@ -7,25 +8,36 @@ import { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';
|
|
|
7
8
|
import { LOCAL_AUTH_CORE_AUTH_MODULE_GENERATED as GENERATED_TEMPLATES } from './generated/index.js';
|
|
8
9
|
const descriptorSchema = z.object({
|
|
9
10
|
userAdminRoles: z.array(z.string()).default([]),
|
|
11
|
+
devWebPorts: z.array(z.number()).default([]),
|
|
10
12
|
});
|
|
11
13
|
export const authModuleGenerator = createGenerator({
|
|
12
14
|
name: 'local-auth/core/auth-module',
|
|
13
15
|
generatorFileUrl: import.meta.url,
|
|
14
16
|
descriptorSchema,
|
|
15
|
-
buildTasks: ({ userAdminRoles }) => ({
|
|
17
|
+
buildTasks: ({ userAdminRoles, devWebPorts }) => ({
|
|
16
18
|
paths: GENERATED_TEMPLATES.paths.task,
|
|
17
19
|
imports: GENERATED_TEMPLATES.imports.task,
|
|
18
20
|
renderers: GENERATED_TEMPLATES.renderers.task,
|
|
19
21
|
config: createProviderTask(configServiceProvider, (configService) => {
|
|
22
|
+
const allowedOrigins = devWebPorts
|
|
23
|
+
.map((p) => `http://localhost:${String(p)}`)
|
|
24
|
+
.join(',');
|
|
20
25
|
configService.configFields.set('ALLOWED_ORIGINS', {
|
|
21
26
|
validator: tsCodeFragment("z.string().optional().transform((val) => (val ? val.split(',').map((s) => s.trim()) : []))"),
|
|
22
27
|
comment: 'Comma-separated list of additional allowed origins for CSRF protection (e.g. https://example.com,https://app.example.com)',
|
|
28
|
+
...(allowedOrigins
|
|
29
|
+
? {
|
|
30
|
+
seedValue: allowedOrigins,
|
|
31
|
+
exampleValue: allowedOrigins,
|
|
32
|
+
}
|
|
33
|
+
: {}),
|
|
23
34
|
});
|
|
35
|
+
const authSecret = 'a-secret-key-1234567890';
|
|
24
36
|
configService.configFields.set('AUTH_SECRET', {
|
|
25
37
|
validator: tsCodeFragment('z.string().regex(/^[a-zA-Z0-9-_+=/]{20,}$/)'),
|
|
26
38
|
comment: 'Secret key for signing auth cookie (at least 20 alphanumeric characters)',
|
|
27
|
-
seedValue:
|
|
28
|
-
exampleValue:
|
|
39
|
+
seedValue: authSecret,
|
|
40
|
+
exampleValue: authSecret,
|
|
29
41
|
});
|
|
30
42
|
}),
|
|
31
43
|
appModule: createGeneratorTask({
|
|
@@ -44,8 +56,10 @@ export const authModuleGenerator = createGenerator({
|
|
|
44
56
|
userObjectType: pothosTypeOutputProvider
|
|
45
57
|
.dependency()
|
|
46
58
|
.reference(createPothosPrismaObjectTypeOutputName(LOCAL_AUTH_MODELS.user)),
|
|
59
|
+
queueConfig: queueConfigProvider.dependency().optional(),
|
|
60
|
+
paths: GENERATED_TEMPLATES.paths.provider,
|
|
47
61
|
},
|
|
48
|
-
run({ prismaOutput, renderers, userObjectType }) {
|
|
62
|
+
run({ prismaOutput, renderers, userObjectType, queueConfig, paths }) {
|
|
49
63
|
return {
|
|
50
64
|
providers: {
|
|
51
65
|
authModule: {},
|
|
@@ -56,6 +70,7 @@ export const authModuleGenerator = createGenerator({
|
|
|
56
70
|
TPL_PRISMA_USER_SESSION: prismaOutput.getPrismaModelFragment(LOCAL_AUTH_MODELS.userSession),
|
|
57
71
|
},
|
|
58
72
|
}));
|
|
73
|
+
await builder.apply(renderers.servicesAuthVerification.render({}));
|
|
59
74
|
await builder.apply(renderers.constantsGroup.render({}));
|
|
60
75
|
await builder.apply(renderers.utilsGroup.render({}));
|
|
61
76
|
await builder.apply(renderers.moduleGroup.render({
|
|
@@ -73,6 +88,12 @@ export const authModuleGenerator = createGenerator({
|
|
|
73
88
|
},
|
|
74
89
|
},
|
|
75
90
|
}));
|
|
91
|
+
// Render queue only if queue plugin is available
|
|
92
|
+
if (queueConfig) {
|
|
93
|
+
await builder.apply(renderers.queuesCleanupAuthVerification.render({}));
|
|
94
|
+
// Register with` queue system
|
|
95
|
+
queueConfig.queues.set('cleanup-auth-verification', TsCodeUtils.importFragment('cleanupAuthVerificationQueue', paths.queuesCleanupAuthVerification));
|
|
96
|
+
}
|
|
76
97
|
},
|
|
77
98
|
};
|
|
78
99
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-module.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-module/auth-module.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,sCAAsC,EACtC,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,OAAO,EAAE,qCAAqC,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEpG,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"auth-module.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-module/auth-module.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,sCAAsC,EACtC,wBAAwB,EACxB,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,OAAO,EAAE,qCAAqC,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEpG,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,cAAc,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,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,CAAC,CAAC"}
|
|
@@ -2,7 +2,10 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_GENERATED: {
|
|
|
2
2
|
imports: {
|
|
3
3
|
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
4
4
|
authModuleImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
5
|
+
cleanupExpiredAuthVerifications: {};
|
|
6
|
+
createAuthVerification: {};
|
|
5
7
|
userSessionPayload: {};
|
|
8
|
+
validateAuthVerification: {};
|
|
6
9
|
}>>;
|
|
7
10
|
userSessionServiceImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
8
11
|
userSessionService: {};
|
|
@@ -77,6 +80,9 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_GENERATED: {
|
|
|
77
80
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
78
81
|
prisma: {};
|
|
79
82
|
}>>;
|
|
83
|
+
queueServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
84
|
+
createQueue: {};
|
|
85
|
+
}>>;
|
|
80
86
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
81
87
|
createContextFromRequest: {};
|
|
82
88
|
RequestServiceContext: {
|
|
@@ -177,6 +183,24 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_GENERATED: {
|
|
|
177
183
|
}>>;
|
|
178
184
|
}, Record<never, Record<never, never>>>;
|
|
179
185
|
};
|
|
186
|
+
queuesCleanupAuthVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
187
|
+
queueServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
188
|
+
createQueue: {};
|
|
189
|
+
}>>;
|
|
190
|
+
}, {
|
|
191
|
+
servicesAuthVerification: {};
|
|
192
|
+
}>;
|
|
193
|
+
servicesAuthVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
194
|
+
prismaGeneratedImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
195
|
+
PrismaClient: {};
|
|
196
|
+
Prisma: {};
|
|
197
|
+
'*': {};
|
|
198
|
+
$Enums: {};
|
|
199
|
+
}>>;
|
|
200
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
201
|
+
prisma: {};
|
|
202
|
+
}>>;
|
|
203
|
+
}, Record<never, Record<never, never>>>;
|
|
180
204
|
userSessionService: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
181
205
|
TPL_PRISMA_USER_SESSION: {};
|
|
182
206
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qCAAqC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKjD,CAAC"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
export interface LocalAuthCoreAuthModulePaths {
|
|
2
2
|
authRoleEnum: string;
|
|
3
3
|
cookieSigner: string;
|
|
4
|
+
queuesCleanupAuthVerification: string;
|
|
4
5
|
schemaUserSessionMutations: string;
|
|
5
6
|
schemaUserSessionPayloadObjectType: string;
|
|
6
7
|
schemaUserSessionQueries: string;
|
|
8
|
+
servicesAuthVerification: string;
|
|
7
9
|
sessionCookie: string;
|
|
8
10
|
userRolesMutations: string;
|
|
9
11
|
userRolesService: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,0BAA0B,EAAE,MAAM,CAAC;IACnC,kCAAkC,EAAE,MAAM,CAAC;IAC3C,wBAAwB,EAAE,MAAM,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;CAC7B;
|
|
1
|
+
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,6BAA6B,EAAE,MAAM,CAAC;IACtC,0BAA0B,EAAE,MAAM,CAAC;IACnC,kCAAkC,EAAE,MAAM,CAAC;IAC3C,wBAAwB,EAAE,MAAM,CAAC;IACjC,wBAAwB,EAAE,MAAM,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAqCD,eAAO,MAAM,iCAAiC;;;;;;;CAG7C,CAAC"}
|
|
@@ -13,9 +13,11 @@ const localAuthCoreAuthModulePathsTask = createGeneratorTask({
|
|
|
13
13
|
localAuthCoreAuthModulePaths: {
|
|
14
14
|
authRoleEnum: `${moduleRoot}/schema/auth-role.enum.ts`,
|
|
15
15
|
cookieSigner: `${moduleRoot}/utils/cookie-signer.ts`,
|
|
16
|
+
queuesCleanupAuthVerification: `${moduleRoot}/queues/cleanup-auth-verification.queue.ts`,
|
|
16
17
|
schemaUserSessionMutations: `${moduleRoot}/schema/user-session.mutations.ts`,
|
|
17
18
|
schemaUserSessionPayloadObjectType: `${moduleRoot}/schema/user-session-payload.object-type.ts`,
|
|
18
19
|
schemaUserSessionQueries: `${moduleRoot}/schema/user-session.queries.ts`,
|
|
20
|
+
servicesAuthVerification: `${moduleRoot}/services/auth-verification.service.ts`,
|
|
19
21
|
sessionCookie: `${moduleRoot}/utils/session-cookie.ts`,
|
|
20
22
|
userRolesMutations: `${moduleRoot}/schema/user-roles.mutations.ts`,
|
|
21
23
|
userRolesService: `${moduleRoot}/services/user-roles.service.ts`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-paths.ts"],"names":[],"mappings":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AuthModuleRenderers {
|
|
|
8
8
|
moduleGroup: {
|
|
9
9
|
render: (options: Omit<RenderTsTemplateGroupActionInput<typeof LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.moduleGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
|
|
10
10
|
};
|
|
11
|
+
queuesCleanupAuthVerification: {
|
|
12
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.queuesCleanupAuthVerification>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
13
|
+
};
|
|
14
|
+
servicesAuthVerification: {
|
|
15
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.servicesAuthVerification>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
16
|
+
};
|
|
11
17
|
userSessionService: {
|
|
12
18
|
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.userSessionService>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
13
19
|
};
|
|
@@ -73,6 +79,9 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_RENDERERS: {
|
|
|
73
79
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
74
80
|
prisma: {};
|
|
75
81
|
}>>;
|
|
82
|
+
queueServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
83
|
+
createQueue: {};
|
|
84
|
+
}>>;
|
|
76
85
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
77
86
|
createContextFromRequest: {};
|
|
78
87
|
RequestServiceContext: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAkBzD,OAAO,EAAE,qCAAqC,EAAE,MAAM,sBAAsB,CAAC;AAE7E,MAAM,WAAW,gCAAgC;IAC/C,cAAc,EAAE;QACd,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,qCAAqC,CAAC,cAAc,CAC5D,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;IACF,WAAW,EAAE;QACX,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,qCAAqC,CAAC,WAAW,CACzD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;IACF,6BAA6B,EAAE;QAC7B,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,qCAAqC,CAAC,6BAA6B,CAC3E,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,wBAAwB,EAAE;QACxB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,qCAAqC,CAAC,wBAAwB,CACtE,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,kBAAkB,EAAE;QAClB,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,qCAAqC,CAAC,kBAAkB,CAChE,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;IACF,UAAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,qCAAqC,CAAC,UAAU,CACxD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA+HD,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGjD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { typescriptFileProvider } from '@baseplate-dev/core-generators';
|
|
2
2
|
import { authContextImportsProvider, authRolesImportsProvider, configServiceImportsProvider, errorHandlerServiceImportsProvider, pothosImportsProvider, prismaGeneratedImportsProvider, prismaImportsProvider, requestServiceContextImportsProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
|
+
import { queueServiceImportsProvider } from '@baseplate-dev/plugin-queue';
|
|
3
4
|
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
|
|
4
5
|
import { LOCAL_AUTH_CORE_AUTH_MODULE_PATHS } from './template-paths.js';
|
|
5
6
|
import { LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES } from './typed-templates.js';
|
|
@@ -14,6 +15,7 @@ const localAuthCoreAuthModuleRenderersTask = createGeneratorTask({
|
|
|
14
15
|
pothosImports: pothosImportsProvider,
|
|
15
16
|
prismaGeneratedImports: prismaGeneratedImportsProvider,
|
|
16
17
|
prismaImports: prismaImportsProvider,
|
|
18
|
+
queueServiceImports: queueServiceImportsProvider,
|
|
17
19
|
requestServiceContextImports: requestServiceContextImportsProvider,
|
|
18
20
|
typescriptFile: typescriptFileProvider,
|
|
19
21
|
userSessionTypesImports: userSessionTypesImportsProvider,
|
|
@@ -21,7 +23,7 @@ const localAuthCoreAuthModuleRenderersTask = createGeneratorTask({
|
|
|
21
23
|
exports: {
|
|
22
24
|
localAuthCoreAuthModuleRenderers: localAuthCoreAuthModuleRenderers.export(),
|
|
23
25
|
},
|
|
24
|
-
run({ authContextImports, authRolesImports, configServiceImports, errorHandlerServiceImports, paths, pothosImports, prismaGeneratedImports, prismaImports, requestServiceContextImports, typescriptFile, userSessionTypesImports, }) {
|
|
26
|
+
run({ authContextImports, authRolesImports, configServiceImports, errorHandlerServiceImports, paths, pothosImports, prismaGeneratedImports, prismaImports, queueServiceImports, requestServiceContextImports, typescriptFile, userSessionTypesImports, }) {
|
|
25
27
|
return {
|
|
26
28
|
providers: {
|
|
27
29
|
localAuthCoreAuthModuleRenderers: {
|
|
@@ -46,6 +48,28 @@ const localAuthCoreAuthModuleRenderersTask = createGeneratorTask({
|
|
|
46
48
|
...options,
|
|
47
49
|
}),
|
|
48
50
|
},
|
|
51
|
+
queuesCleanupAuthVerification: {
|
|
52
|
+
render: (options) => typescriptFile.renderTemplateFile({
|
|
53
|
+
template: LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.queuesCleanupAuthVerification,
|
|
54
|
+
destination: paths.queuesCleanupAuthVerification,
|
|
55
|
+
importMapProviders: {
|
|
56
|
+
queueServiceImports,
|
|
57
|
+
},
|
|
58
|
+
generatorPaths: paths,
|
|
59
|
+
...options,
|
|
60
|
+
}),
|
|
61
|
+
},
|
|
62
|
+
servicesAuthVerification: {
|
|
63
|
+
render: (options) => typescriptFile.renderTemplateFile({
|
|
64
|
+
template: LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.servicesAuthVerification,
|
|
65
|
+
destination: paths.servicesAuthVerification,
|
|
66
|
+
importMapProviders: {
|
|
67
|
+
prismaGeneratedImports,
|
|
68
|
+
prismaImports,
|
|
69
|
+
},
|
|
70
|
+
...options,
|
|
71
|
+
}),
|
|
72
|
+
},
|
|
49
73
|
userSessionService: {
|
|
50
74
|
render: (options) => typescriptFile.renderTemplateFile({
|
|
51
75
|
template: LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.userSessionService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-renderers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,qBAAqB,EACrB,8BAA8B,EAC9B,qBAAqB,EACrB,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,qCAAqC,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-renderers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,qBAAqB,EACrB,8BAA8B,EAC9B,qBAAqB,EACrB,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,2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CAClB,cAAc,CAAC,mBAAmB,CAAC;4BACjC,KAAK,EAAE,qCAAqC,CAAC,UAAU;4BACvD,KAAK;4BACL,kBAAkB,EAAE;gCAClB,oBAAoB;6BACrB;4BACD,GAAG,OAAO;yBACX,CAAC;qBACL;iBACF;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACnD,QAAQ,EAAE,gCAAgC;IAC1C,IAAI,EAAE,oCAAoC;CAC3C,CAAC"}
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import type { TsImportMapProviderFromSchema } from '@baseplate-dev/core-generators';
|
|
2
2
|
export declare const authModuleImportsSchema: {
|
|
3
|
+
cleanupExpiredAuthVerifications: {};
|
|
4
|
+
createAuthVerification: {};
|
|
3
5
|
userSessionPayload: {};
|
|
6
|
+
validateAuthVerification: {};
|
|
4
7
|
};
|
|
5
8
|
export type AuthModuleImportsProvider = TsImportMapProviderFromSchema<typeof authModuleImportsSchema>;
|
|
6
9
|
export declare const authModuleImportsProvider: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
10
|
+
cleanupExpiredAuthVerifications: {};
|
|
11
|
+
createAuthVerification: {};
|
|
7
12
|
userSessionPayload: {};
|
|
13
|
+
validateAuthVerification: {};
|
|
8
14
|
}>>;
|
|
9
15
|
export declare const LOCAL_AUTH_CORE_AUTH_MODULE_IMPORTS: {
|
|
10
16
|
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
11
17
|
authModuleImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
18
|
+
cleanupExpiredAuthVerifications: {};
|
|
19
|
+
createAuthVerification: {};
|
|
12
20
|
userSessionPayload: {};
|
|
21
|
+
validateAuthVerification: {};
|
|
13
22
|
}>>;
|
|
14
23
|
userSessionServiceImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
15
24
|
userSessionService: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAkBpF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAkBpF,eAAO,MAAM,uBAAuB;;;;;CAKlC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,CACnE,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;GACwC,CAAC;AA6B/E,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;CAE/C,CAAC"}
|
|
@@ -3,7 +3,10 @@ import { userSessionServiceImportsProvider, userSessionServiceImportsSchema, } f
|
|
|
3
3
|
import { createGeneratorTask, createReadOnlyProviderType, } from '@baseplate-dev/sync';
|
|
4
4
|
import { LOCAL_AUTH_CORE_AUTH_MODULE_PATHS } from './template-paths.js';
|
|
5
5
|
export const authModuleImportsSchema = createTsImportMapSchema({
|
|
6
|
+
cleanupExpiredAuthVerifications: {},
|
|
7
|
+
createAuthVerification: {},
|
|
6
8
|
userSessionPayload: {},
|
|
9
|
+
validateAuthVerification: {},
|
|
7
10
|
});
|
|
8
11
|
export const authModuleImportsProvider = createReadOnlyProviderType('auth-module-imports');
|
|
9
12
|
const localAuthCoreAuthModuleImportsTask = createGeneratorTask({
|
|
@@ -18,7 +21,10 @@ const localAuthCoreAuthModuleImportsTask = createGeneratorTask({
|
|
|
18
21
|
return {
|
|
19
22
|
providers: {
|
|
20
23
|
authModuleImports: createTsImportMap(authModuleImportsSchema, {
|
|
24
|
+
cleanupExpiredAuthVerifications: paths.servicesAuthVerification,
|
|
25
|
+
createAuthVerification: paths.servicesAuthVerification,
|
|
21
26
|
userSessionPayload: paths.schemaUserSessionPayloadObjectType,
|
|
27
|
+
validateAuthVerification: paths.servicesAuthVerification,
|
|
22
28
|
}),
|
|
23
29
|
userSessionServiceImports: createTsImportMap(userSessionServiceImportsSchema, { userSessionService: paths.userSessionService }),
|
|
24
30
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/ts-import-providers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAExE,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;IAC7D,kBAAkB,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/ts-import-providers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAExE,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;IAC7D,+BAA+B,EAAE,EAAE;IACnC,sBAAsB,EAAE,EAAE;IAC1B,kBAAkB,EAAE,EAAE;IACtB,wBAAwB,EAAE,EAAE;CAC7B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,yBAAyB,GACpC,0BAA0B,CAA4B,qBAAqB,CAAC,CAAC;AAE/E,MAAM,kCAAkC,GAAG,mBAAmB,CAAC;IAC7D,YAAY,EAAE;QACZ,KAAK,EAAE,iCAAiC,CAAC,QAAQ;KAClD;IACD,OAAO,EAAE;QACP,iBAAiB,EAAE,yBAAyB,CAAC,MAAM,CAAC,YAAY,CAAC;QACjE,yBAAyB,EACvB,iCAAiC,CAAC,MAAM,CAAC,YAAY,CAAC;KACzD;IACD,GAAG,CAAC,EAAE,KAAK,EAAE;QACX,OAAO;YACL,SAAS,EAAE;gBACT,iBAAiB,EAAE,iBAAiB,CAAC,uBAAuB,EAAE;oBAC5D,+BAA+B,EAAE,KAAK,CAAC,wBAAwB;oBAC/D,sBAAsB,EAAE,KAAK,CAAC,wBAAwB;oBACtD,kBAAkB,EAAE,KAAK,CAAC,kCAAkC;oBAC5D,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;iBACzD,CAAC;gBACF,yBAAyB,EAAE,iBAAiB,CAC1C,+BAA+B,EAC/B,EAAE,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,EAAE,CACjD;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG;IACjD,IAAI,EAAE,kCAAkC;CACzC,CAAC"}
|
|
@@ -172,6 +172,24 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES: {
|
|
|
172
172
|
}>>;
|
|
173
173
|
}, Record<never, Record<never, never>>>;
|
|
174
174
|
};
|
|
175
|
+
queuesCleanupAuthVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
176
|
+
queueServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
177
|
+
createQueue: {};
|
|
178
|
+
}>>;
|
|
179
|
+
}, {
|
|
180
|
+
servicesAuthVerification: {};
|
|
181
|
+
}>;
|
|
182
|
+
servicesAuthVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
183
|
+
prismaGeneratedImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
184
|
+
PrismaClient: {};
|
|
185
|
+
Prisma: {};
|
|
186
|
+
'*': {};
|
|
187
|
+
$Enums: {};
|
|
188
|
+
}>>;
|
|
189
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
190
|
+
prisma: {};
|
|
191
|
+
}>>;
|
|
192
|
+
}, Record<never, Record<never, never>>>;
|
|
175
193
|
userSessionService: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
176
194
|
TPL_PRISMA_USER_SESSION: {};
|
|
177
195
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/typed-templates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/typed-templates.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,cAAc;;CAA2B,CAAC;AAwGvD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOvB,CAAC;AA2GF,eAAO,MAAM,UAAU;;;;;;;;CAAuD,CAAC;AAE/E,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOjD,CAAC"}
|