@baseplate-dev/plugin-auth 4.0.1 → 4.0.3
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 +645 -0
- package/dist/auth0/core/schema/plugin-definition.js +1 -1
- package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts +1 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +1 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
- package/dist/local-auth/constants/model-names.d.ts +4 -0
- package/dist/local-auth/constants/model-names.d.ts.map +1 -1
- package/dist/local-auth/constants/model-names.js +4 -0
- package/dist/local-auth/constants/model-names.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +53 -0
- 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 +28 -7
- 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 +219 -0
- 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 +4 -0
- 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 +4 -0
- 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 +47 -1
- 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 +38 -2
- 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/ts-import-providers.d.ts +18 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +12 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +271 -0
- 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 +85 -4
- 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/constants/password.constants.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js +15 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.ts +18 -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/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 +35 -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 +156 -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 +229 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +48 -14
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +79 -15
- 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-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 +12 -2
- 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 +26 -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 +10 -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 +19 -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/schema/user-session.mutations.js +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js +2 -2
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts +2 -2
- 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-routes/auth-routes.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js +1 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +722 -4
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.js +2 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js +4 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +4 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js +14 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -1
- 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 +1216 -34
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js +70 -2
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/index.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/index.js +1 -0
- package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -1
- 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 +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +6 -11
- 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 +20 -19
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +2 -2
- 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 +2 -3
- 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 +131 -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 +240 -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 +1 -0
- package/dist/local-auth/core/generators/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/index.js +1 -0
- package/dist/local-auth/core/generators/index.js.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +12 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +6 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +6 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +6 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +1 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -1
- package/dist/local-auth/core/node.d.ts.map +1 -1
- package/dist/local-auth/core/node.js +11 -1
- package/dist/local-auth/core/node.js.map +1 -1
- package/dist/local-auth/core/schema/models.d.ts.map +1 -1
- package/dist/local-auth/core/schema/models.js +60 -0
- package/dist/local-auth/core/schema/models.js.map +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/web/assets/{__federation_expose_auth0CoreCommon-DLSGXjCI.js → __federation_expose_auth0CoreCommon-e_GtBIIm.js} +3 -3
- package/dist/web/assets/{__federation_expose_auth0CoreCommon-DLSGXjCI.js.map → __federation_expose_auth0CoreCommon-e_GtBIIm.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-C7FfhlmF.js → __federation_expose_auth0CoreWeb-CTfPylMw.js} +5 -5
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-C7FfhlmF.js.map → __federation_expose_auth0CoreWeb-CTfPylMw.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreCommon-BF58isGa.js → __federation_expose_authCoreCommon-Bg2mzE9K.js} +3 -3
- package/dist/web/assets/{__federation_expose_authCoreCommon-BF58isGa.js.map → __federation_expose_authCoreCommon-Bg2mzE9K.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreWeb-DMq9M88g.js → __federation_expose_authCoreWeb-DrOVHmj4.js} +6 -6
- package/dist/web/assets/{__federation_expose_authCoreWeb-DMq9M88g.js.map → __federation_expose_authCoreWeb-DrOVHmj4.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-sQw4q5YX.js → __federation_expose_local-authAdminCommon-Bzb0P17-.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-sQw4q5YX.js.map → __federation_expose_local-authAdminCommon-Bzb0P17-.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-9FbO89NR.js → __federation_expose_local-authAdminWeb-D_LWcl7j.js} +3 -3
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-9FbO89NR.js.map → __federation_expose_local-authAdminWeb-D_LWcl7j.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-CpUK09_4.js → __federation_expose_local-authCoreCommon-D6OG-Rz6.js} +4 -4
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-CpUK09_4.js.map → __federation_expose_local-authCoreCommon-D6OG-Rz6.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-Czp0GaY1.js → __federation_expose_local-authCoreWeb-CaR8fx1f.js} +66 -6
- package/dist/web/assets/__federation_expose_local-authCoreWeb-CaR8fx1f.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js → __federation_expose_placeholder-authCoreCommon-D7b3GEPP.js} +3 -3
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js.map → __federation_expose_placeholder-authCoreCommon-D7b3GEPP.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js → __federation_expose_placeholder-authCoreWeb-VZzvid5j.js} +5 -5
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js.map → __federation_expose_placeholder-authCoreWeb-VZzvid5j.js.map} +1 -1
- package/dist/web/assets/{__federation_fn_import-DsXcpNlB.js → __federation_fn_import-DfNliZHH.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-DsXcpNlB.js.map → __federation_fn_import-DfNliZHH.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-zqe3PPcn.js → web-BqJ1vSYx.js} +8 -8
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BqJ1vSYx.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-CmgMfkI5.js → project-builder-lib-qf98MMJC.js} +7137 -136
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-qf98MMJC.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DFkMnXmX.js +52536 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-DFkMnXmX.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-BO5VHrCf.js → utils-CApJheqk.js} +5 -6
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-CApJheqk.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-CNzDweD5.js → react-router-YQslfDyE.js} +1069 -746
- package/dist/web/assets/__federation_shared_@tanstack/react-router-YQslfDyE.js.map +1 -0
- package/dist/web/assets/{get-auth-plugin-definition-BV2O8wTa.js → get-auth-plugin-definition-CVuj_mvy.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-BV2O8wTa.js.map → get-auth-plugin-definition-CVuj_mvy.js.map} +1 -1
- package/dist/web/assets/{index-BL7fotl7.js → index-B00D4irM.js} +2 -2
- package/dist/web/assets/{index-BL7fotl7.js.map → index-B00D4irM.js.map} +1 -1
- package/dist/web/assets/{index.esm-B4RpOlq_.js → index.esm-1qBxxnfu.js} +2 -2
- package/dist/web/assets/{index.esm-B4RpOlq_.js.map → index.esm-1qBxxnfu.js.map} +1 -1
- package/dist/web/assets/{model-merger-BwRNqcBu.js → model-merger-59HLmy_J.js} +80 -23
- package/dist/web/assets/model-merger-59HLmy_J.js.map +1 -0
- package/dist/web/assets/{model-names-CEoSIalq.js → model-names-DrcaRxt1.js} +6 -2
- package/dist/web/assets/{model-names-CEoSIalq.js.map → model-names-DrcaRxt1.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-BMTsmwyH.js → plugin-definition-BKCeZ0Ni.js} +2 -2
- package/dist/web/assets/{plugin-definition-BMTsmwyH.js.map → plugin-definition-BKCeZ0Ni.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-DA9rJBcS.js → plugin-definition-B_hlyPlm.js} +3 -3
- package/dist/web/assets/plugin-definition-B_hlyPlm.js.map +1 -0
- package/dist/web/assets/{plugin-definition-CHD5r-h7.js → plugin-definition-Bkx-a_wA.js} +3 -3
- package/dist/web/assets/plugin-definition-Bkx-a_wA.js.map +1 -0
- package/dist/web/assets/{plugin-definition-B9d2CoQL.js → plugin-definition-CcdhC0td.js} +2 -2
- package/dist/web/assets/{plugin-definition-B9d2CoQL.js.map → plugin-definition-CcdhC0td.js.map} +1 -1
- package/dist/web/assets/{react-B9vhIZMy.js → react-Df9ccuow.js} +2 -2
- package/dist/web/assets/{react-B9vhIZMy.js.map → react-Df9ccuow.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +20 -20
- package/dist/web/assets/{style-DZ-aOCkd.css → style-DiK_rD1L.css} +1 -1
- package/dist/web/assets/{styles-CEm5K1iU.js → styles-CbPVroCT.js} +3 -3
- package/dist/web/assets/{styles-CEm5K1iU.js.map → styles-CbPVroCT.js.map} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +22 -19
- package/dist/web/assets/__federation_expose_local-authCoreWeb-Czp0GaY1.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-zqe3PPcn.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CmgMfkI5.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-D1Dayhn9.js +0 -24082
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-D1Dayhn9.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BO5VHrCf.js.map +0 -1
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CNzDweD5.js.map +0 -1
- package/dist/web/assets/model-merger-BwRNqcBu.js.map +0 -1
- package/dist/web/assets/plugin-definition-CHD5r-h7.js.map +0 -1
- package/dist/web/assets/plugin-definition-DA9rJBcS.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { definitionSchema } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export const createAuth0PluginDefinitionSchema = definitionSchema((
|
|
3
|
+
export const createAuth0PluginDefinitionSchema = definitionSchema(() => z.object({}));
|
|
4
4
|
//# sourceMappingURL=plugin-definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-definition.js","sourceRoot":"","sources":["../../../../src/auth0/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"plugin-definition.js","sourceRoot":"","sources":["../../../../src/auth0/core/schema/plugin-definition.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC,GAAG,EAAE,CACrE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CACb,CAAC"}
|
package/dist/auth0/generators/fastify/auth0-module/templates/module/schema/user-session.queries.ts
CHANGED
|
@@ -10,7 +10,7 @@ builder.queryField('viewer', (t) =>
|
|
|
10
10
|
description: 'The currently authenticated user',
|
|
11
11
|
authorize: ['public'],
|
|
12
12
|
resolve: async (query, root, args, { auth }) => {
|
|
13
|
-
if (
|
|
13
|
+
if (auth.session?.type !== 'user') {
|
|
14
14
|
return null;
|
|
15
15
|
}
|
|
16
16
|
return prisma.user.findUnique({
|
|
@@ -24,7 +24,7 @@ export const auth0HooksGenerator = createGenerator({
|
|
|
24
24
|
await builder.apply(renderers.hooksGroup.render({
|
|
25
25
|
variables: {
|
|
26
26
|
useSession: {
|
|
27
|
-
TPL_AUTH_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted([...authRoles].
|
|
27
|
+
TPL_AUTH_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted([...authRoles].toSorted().map((role) => quot(role))),
|
|
28
28
|
},
|
|
29
29
|
},
|
|
30
30
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth0-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IACjD,IAAI,EAAE,mBAAmB;IACzB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QAC9B,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,IAAI;QAC7C,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,IAAI;QACjD,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,IAAI;QACrD,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,QAAQ;aAC1D;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;4BAC1B,SAAS,EAAE;gCACT,UAAU,EAAE;oCACV,cAAc,EAAE,WAAW,CAAC,8BAA8B,CACxD,CAAC,GAAG,SAAS,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"auth0-hooks.generator.js","sourceRoot":"","sources":["../../../../../src/auth0/generators/react/auth0-hooks/auth0-hooks.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AAEnE,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;CAC3C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;IACjD,IAAI,EAAE,mBAAmB;IACzB,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;QAC9B,KAAK,EAAE,2BAA2B,CAAC,KAAK,CAAC,IAAI;QAC7C,OAAO,EAAE,2BAA2B,CAAC,OAAO,CAAC,IAAI;QACjD,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,IAAI;QACrD,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,2BAA2B,CAAC,SAAS,CAAC,QAAQ;aAC1D;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC;4BAC1B,SAAS,EAAE;gCACT,UAAU,EAAE;oCACV,cAAc,EAAE,WAAW,CAAC,8BAA8B,CACxD,CAAC,GAAG,SAAS,CAAC,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CACpD;iCACF;6BACF;yBACF,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -15,5 +15,9 @@ export declare const LOCAL_AUTH_MODELS: {
|
|
|
15
15
|
* Model name for the user session model that represents a user session in the local auth system.
|
|
16
16
|
*/
|
|
17
17
|
readonly userSession: "UserSession";
|
|
18
|
+
/**
|
|
19
|
+
* Model name for the auth verification model used for secure token-based verification flows (e.g. password reset, email verification).
|
|
20
|
+
*/
|
|
21
|
+
readonly authVerification: "AuthVerification";
|
|
18
22
|
};
|
|
19
23
|
//# sourceMappingURL=model-names.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-names.d.ts","sourceRoot":"","sources":["../../../src/local-auth/constants/model-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC"}
|
|
1
|
+
{"version":3,"file":"model-names.d.ts","sourceRoot":"","sources":["../../../src/local-auth/constants/model-names.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;IAC5B;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;CAEK,CAAC"}
|
|
@@ -15,5 +15,9 @@ export const LOCAL_AUTH_MODELS = {
|
|
|
15
15
|
* Model name for the user session model that represents a user session in the local auth system.
|
|
16
16
|
*/
|
|
17
17
|
userSession: 'UserSession',
|
|
18
|
+
/**
|
|
19
|
+
* Model name for the auth verification model used for secure token-based verification flows (e.g. password reset, email verification).
|
|
20
|
+
*/
|
|
21
|
+
authVerification: 'AuthVerification',
|
|
18
22
|
};
|
|
19
23
|
//# sourceMappingURL=model-names.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-names.js","sourceRoot":"","sources":["../../../src/local-auth/constants/model-names.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,WAAW,EAAE,aAAa;IAC1B;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,WAAW,EAAE,aAAa;
|
|
1
|
+
{"version":3,"file":"model-names.js","sourceRoot":"","sources":["../../../src/local-auth/constants/model-names.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B;;OAEG;IACH,IAAI,EAAE,MAAM;IACZ;;OAEG;IACH,WAAW,EAAE,aAAa;IAC1B;;OAEG;IACH,QAAQ,EAAE,UAAU;IACpB;;OAEG;IACH,WAAW,EAAE,aAAa;IAC1B;;OAEG;IACH,gBAAgB,EAAE,kBAAkB;CAC5B,CAAC"}
|
package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").GeneratorBundleCreator<{
|
|
5
5
|
adminRoles: string[];
|
|
6
|
+
devWebDomainPort: number;
|
|
6
7
|
}, {
|
|
7
8
|
paths: import("@baseplate-dev/sync").GeneratorTask<{
|
|
8
9
|
localAuthCoreAuthEmailPasswordPaths: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-paths.js").LocalAuthCoreAuthEmailPasswordPaths>;
|
|
@@ -12,9 +13,15 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
|
|
|
12
13
|
imports: import("@baseplate-dev/sync").GeneratorTask<{
|
|
13
14
|
authEmailPasswordImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
14
15
|
authenticateUserWithEmailAndPassword: {};
|
|
16
|
+
cleanupExpiredPasswordResetTokens: {};
|
|
17
|
+
completePasswordReset: {};
|
|
15
18
|
createUserWithEmailAndPassword: {};
|
|
19
|
+
PASSWORD_MAX_LENGTH: {};
|
|
16
20
|
PASSWORD_MIN_LENGTH: {};
|
|
21
|
+
PASSWORD_RESET_TOKEN_EXPIRY_SEC: {};
|
|
17
22
|
registerUserWithEmailAndPassword: {};
|
|
23
|
+
requestPasswordReset: {};
|
|
24
|
+
validatePasswordResetToken: {};
|
|
18
25
|
}>>;
|
|
19
26
|
}, {
|
|
20
27
|
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthCoreAuthEmailPasswordPaths>;
|
|
@@ -23,7 +30,33 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
|
|
|
23
30
|
localAuthCoreAuthEmailPasswordRenderers: import("@baseplate-dev/sync").ProviderExport<import("./generated/template-renderers.js").LocalAuthCoreAuthEmailPasswordRenderers>;
|
|
24
31
|
}, {
|
|
25
32
|
authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
33
|
+
cleanupExpiredAuthVerifications: {};
|
|
34
|
+
createAuthVerification: {};
|
|
26
35
|
userSessionPayload: {};
|
|
36
|
+
validateAuthVerification: {};
|
|
37
|
+
}>>;
|
|
38
|
+
configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
39
|
+
config: {};
|
|
40
|
+
}>>;
|
|
41
|
+
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
42
|
+
EmailAdapter: {
|
|
43
|
+
isTypeOnly: true;
|
|
44
|
+
};
|
|
45
|
+
EmailAttachment: {
|
|
46
|
+
isTypeOnly: true;
|
|
47
|
+
};
|
|
48
|
+
EmailRawOptions: {
|
|
49
|
+
isTypeOnly: true;
|
|
50
|
+
};
|
|
51
|
+
EmailSendOptions: {
|
|
52
|
+
isTypeOnly: true;
|
|
53
|
+
};
|
|
54
|
+
sendEmail: {};
|
|
55
|
+
sendEmailQueue: {};
|
|
56
|
+
sendRawEmail: {};
|
|
57
|
+
TransformedEmailMessage: {
|
|
58
|
+
isTypeOnly: true;
|
|
59
|
+
};
|
|
27
60
|
}>>;
|
|
28
61
|
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
29
62
|
BadRequestError: {};
|
|
@@ -33,6 +66,7 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
|
|
|
33
66
|
InternalServerError: {};
|
|
34
67
|
logError: {};
|
|
35
68
|
NotFoundError: {};
|
|
69
|
+
TooManyRequestsError: {};
|
|
36
70
|
UnauthorizedError: {};
|
|
37
71
|
}>>;
|
|
38
72
|
passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -52,6 +86,19 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
|
|
|
52
86
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
53
87
|
prisma: {};
|
|
54
88
|
}>>;
|
|
89
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
90
|
+
createRateLimiter: {};
|
|
91
|
+
memoizeRateLimiter: {};
|
|
92
|
+
RateLimiter: {
|
|
93
|
+
isTypeOnly: true;
|
|
94
|
+
};
|
|
95
|
+
RateLimiterConfig: {
|
|
96
|
+
isTypeOnly: true;
|
|
97
|
+
};
|
|
98
|
+
RateLimitResult: {
|
|
99
|
+
isTypeOnly: true;
|
|
100
|
+
};
|
|
101
|
+
}>>;
|
|
55
102
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
56
103
|
createContextFromRequest: {};
|
|
57
104
|
RequestServiceContext: {
|
|
@@ -71,12 +118,18 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
|
|
|
71
118
|
};
|
|
72
119
|
}>>;
|
|
73
120
|
}, undefined>;
|
|
121
|
+
config: import("@baseplate-dev/sync").GeneratorTask<undefined, {
|
|
122
|
+
provider: import("@baseplate-dev/sync").ProviderType<Omit<import("@baseplate-dev/utils").FieldMap<{
|
|
123
|
+
configFields: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/fastify-generators/src/index.js").ConfigServiceField>;
|
|
124
|
+
}>, "getValues">>;
|
|
125
|
+
}, undefined>;
|
|
74
126
|
appModule: import("@baseplate-dev/sync").GeneratorTask<any, {
|
|
75
127
|
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthCoreAuthEmailPasswordPaths>;
|
|
76
128
|
appModule: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/fastify-generators/src/index.js").AppModuleProvider>;
|
|
77
129
|
}, any>;
|
|
78
130
|
main: import("@baseplate-dev/sync").GeneratorTask<any, {
|
|
79
131
|
renderers: import("@baseplate-dev/sync").ProviderType<import("./generated/template-renderers.js").LocalAuthCoreAuthEmailPasswordRenderers>;
|
|
132
|
+
transactionalLibConfig: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/plugin-email").TransactionalLibConfigProvider>;
|
|
80
133
|
userObjectType: import("@baseplate-dev/sync").ProviderDependency<import("@baseplate-dev/fastify-generators/src/index.js").PothosTypeOutputProvider>;
|
|
81
134
|
}, any>;
|
|
82
135
|
}>;
|
package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-email-password.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-password/auth-email-password.generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auth-email-password.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-password/auth-email-password.generator.ts"],"names":[],"mappings":"AAyBA;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsFrC,CAAC"}
|
package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import { TsCodeUtils } from '@baseplate-dev/core-generators';
|
|
2
|
-
import { appModuleProvider, createPothosPrismaObjectTypeOutputName, pothosTypeOutputProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
|
-
import {
|
|
1
|
+
import { tsCodeFragment, TsCodeUtils } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { appModuleProvider, configServiceProvider, createPothosPrismaObjectTypeOutputName, pothosTypeOutputProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
|
+
import { transactionalLibConfigProvider } from '@baseplate-dev/plugin-email';
|
|
4
|
+
import { createGenerator, createGeneratorTask, createProviderTask, } from '@baseplate-dev/sync';
|
|
4
5
|
import { quot } from '@baseplate-dev/utils';
|
|
5
6
|
import { z } from 'zod';
|
|
6
7
|
import { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';
|
|
7
8
|
import { LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED as GENERATED_TEMPLATES } from './generated/index.js';
|
|
8
9
|
const descriptorSchema = z.object({
|
|
9
10
|
adminRoles: z.array(z.string()),
|
|
11
|
+
devWebDomainPort: z.number(),
|
|
10
12
|
});
|
|
11
13
|
/**
|
|
12
14
|
* Sets up email / password authentication
|
|
@@ -15,37 +17,56 @@ export const authEmailPasswordGenerator = createGenerator({
|
|
|
15
17
|
name: 'local-auth/core/auth-email-password',
|
|
16
18
|
generatorFileUrl: import.meta.url,
|
|
17
19
|
descriptorSchema,
|
|
18
|
-
buildTasks: ({ adminRoles }) => ({
|
|
20
|
+
buildTasks: ({ adminRoles, devWebDomainPort }) => ({
|
|
19
21
|
paths: GENERATED_TEMPLATES.paths.task,
|
|
20
22
|
imports: GENERATED_TEMPLATES.imports.task,
|
|
21
23
|
renderers: GENERATED_TEMPLATES.renderers.task,
|
|
24
|
+
config: createProviderTask(configServiceProvider, (configService) => {
|
|
25
|
+
configService.configFields.set('AUTH_FRONTEND_URL', {
|
|
26
|
+
validator: tsCodeFragment('z.url()'),
|
|
27
|
+
comment: 'Frontend URL for authentication flows including password reset and email verification (e.g., https://app.example.com)',
|
|
28
|
+
exampleValue: `http://localhost:${devWebDomainPort}`,
|
|
29
|
+
});
|
|
30
|
+
}),
|
|
22
31
|
appModule: createGeneratorTask({
|
|
23
32
|
dependencies: {
|
|
24
33
|
paths: GENERATED_TEMPLATES.paths.provider,
|
|
25
34
|
appModule: appModuleProvider,
|
|
26
35
|
},
|
|
27
36
|
run({ paths, appModule }) {
|
|
28
|
-
appModule.moduleImports.push(paths.schemaUserPasswordMutations);
|
|
37
|
+
appModule.moduleImports.push(paths.schemaUserPasswordMutations, paths.schemaPasswordResetMutations, paths.schemaEmailVerificationMutations);
|
|
29
38
|
},
|
|
30
39
|
}),
|
|
31
40
|
main: createGeneratorTask({
|
|
32
41
|
dependencies: {
|
|
33
42
|
renderers: GENERATED_TEMPLATES.renderers.provider,
|
|
43
|
+
transactionalLibConfig: transactionalLibConfigProvider,
|
|
34
44
|
userObjectType: pothosTypeOutputProvider
|
|
35
45
|
.dependency()
|
|
36
46
|
.reference(createPothosPrismaObjectTypeOutputName(LOCAL_AUTH_MODELS.user)),
|
|
37
47
|
},
|
|
38
|
-
run({ renderers, userObjectType }) {
|
|
48
|
+
run({ renderers, transactionalLibConfig, userObjectType }) {
|
|
49
|
+
const transactionalLibPackageName = transactionalLibConfig.getTransactionalLibPackageName();
|
|
39
50
|
return {
|
|
40
51
|
build: async (builder) => {
|
|
41
52
|
await builder.apply(renderers.moduleGroup.render({
|
|
42
53
|
variables: {
|
|
43
54
|
schemaUserPasswordMutations: {
|
|
44
|
-
TPL_ADMIN_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted(adminRoles.map((r) => quot(r)).
|
|
55
|
+
TPL_ADMIN_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted(adminRoles.map((r) => quot(r)).toSorted()),
|
|
45
56
|
TPL_USER_OBJECT_TYPE: userObjectType.getTypeReference().fragment,
|
|
46
57
|
},
|
|
58
|
+
servicesPasswordReset: {
|
|
59
|
+
TPL_PASSWORD_RESET_EMAIL: TsCodeUtils.importFragment('PasswordResetEmail', transactionalLibPackageName),
|
|
60
|
+
TPL_PASSWORD_CHANGED_EMAIL: TsCodeUtils.importFragment('PasswordChangedEmail', transactionalLibPackageName),
|
|
61
|
+
},
|
|
62
|
+
},
|
|
63
|
+
}));
|
|
64
|
+
await builder.apply(renderers.servicesEmailVerification.render({
|
|
65
|
+
variables: {
|
|
66
|
+
TPL_ACCOUNT_VERIFICATION_EMAIL: TsCodeUtils.importFragment('AccountVerificationEmail', transactionalLibPackageName),
|
|
47
67
|
},
|
|
48
68
|
}));
|
|
69
|
+
await builder.apply(renderers.schemaEmailVerificationMutations.render({}));
|
|
49
70
|
},
|
|
50
71
|
};
|
|
51
72
|
},
|
package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth-email-password.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-password/auth-email-password.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"auth-email-password.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/auth-email-password/auth-email-password.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EACL,iBAAiB,EACjB,qBAAqB,EACrB,sCAAsC,EACtC,wBAAwB,GACzB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,8BAA8B,EAAE,MAAM,6BAA6B,CAAC;AAC7E,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,6CAA6C,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE5G,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC/B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC7B,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,eAAe,CAAC;IACxD,IAAI,EAAE,qCAAqC;IAC3C,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAC;QACjD,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI;QACrC,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI;QACzC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,IAAI;QAC7C,MAAM,EAAE,kBAAkB,CAAC,qBAAqB,EAAE,CAAC,aAAa,EAAE,EAAE;YAClE,aAAa,CAAC,YAAY,CAAC,GAAG,CAAC,mBAAmB,EAAE;gBAClD,SAAS,EAAE,cAAc,CAAC,SAAS,CAAC;gBACpC,OAAO,EACL,uHAAuH;gBACzH,YAAY,EAAE,oBAAoB,gBAAgB,EAAE;aACrD,CAAC,CAAC;QACL,CAAC,CAAC;QACF,SAAS,EAAE,mBAAmB,CAAC;YAC7B,YAAY,EAAE;gBACZ,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,QAAQ;gBACzC,SAAS,EAAE,iBAAiB;aAC7B;YACD,GAAG,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE;gBACtB,SAAS,CAAC,aAAa,CAAC,IAAI,CAC1B,KAAK,CAAC,2BAA2B,EACjC,KAAK,CAAC,4BAA4B,EAClC,KAAK,CAAC,gCAAgC,CACvC,CAAC;YACJ,CAAC;SACF,CAAC;QACF,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,QAAQ;gBACjD,sBAAsB,EAAE,8BAA8B;gBACtD,cAAc,EAAE,wBAAwB;qBACrC,UAAU,EAAE;qBACZ,SAAS,CACR,sCAAsC,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAC/D;aACJ;YACD,GAAG,CAAC,EAAE,SAAS,EAAE,sBAAsB,EAAE,cAAc,EAAE;gBACvD,MAAM,2BAA2B,GAC/B,sBAAsB,CAAC,8BAA8B,EAAE,CAAC;gBAE1D,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC;4BAC3B,SAAS,EAAE;gCACT,2BAA2B,EAAE;oCAC3B,eAAe,EAAE,WAAW,CAAC,8BAA8B,CACzD,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAC1C;oCACD,oBAAoB,EAClB,cAAc,CAAC,gBAAgB,EAAE,CAAC,QAAQ;iCAC7C;gCACD,qBAAqB,EAAE;oCACrB,wBAAwB,EAAE,WAAW,CAAC,cAAc,CAClD,oBAAoB,EACpB,2BAA2B,CAC5B;oCACD,0BAA0B,EAAE,WAAW,CAAC,cAAc,CACpD,sBAAsB,EACtB,2BAA2B,CAC5B;iCACF;6BACF;yBACF,CAAC,CACH,CAAC;wBACF,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,yBAAyB,CAAC,MAAM,CAAC;4BACzC,SAAS,EAAE;gCACT,8BAA8B,EAAE,WAAW,CAAC,cAAc,CACxD,0BAA0B,EAC1B,2BAA2B,CAC5B;6BACF;yBACF,CAAC,CACH,CAAC;wBACF,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,gCAAgC,CAAC,MAAM,CAAC,EAAE,CAAC,CACtD,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -3,9 +3,15 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
3
3
|
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
4
4
|
authEmailPasswordImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
5
5
|
authenticateUserWithEmailAndPassword: {};
|
|
6
|
+
cleanupExpiredPasswordResetTokens: {};
|
|
7
|
+
completePasswordReset: {};
|
|
6
8
|
createUserWithEmailAndPassword: {};
|
|
9
|
+
PASSWORD_MAX_LENGTH: {};
|
|
7
10
|
PASSWORD_MIN_LENGTH: {};
|
|
11
|
+
PASSWORD_RESET_TOKEN_EXPIRY_SEC: {};
|
|
8
12
|
registerUserWithEmailAndPassword: {};
|
|
13
|
+
requestPasswordReset: {};
|
|
14
|
+
validatePasswordResetToken: {};
|
|
9
15
|
}>>;
|
|
10
16
|
}, {
|
|
11
17
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreAuthEmailPasswordPaths>;
|
|
@@ -25,7 +31,33 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
25
31
|
localAuthCoreAuthEmailPasswordRenderers: import("@baseplate-dev/sync").ProviderExport<import("./template-renderers.js").LocalAuthCoreAuthEmailPasswordRenderers>;
|
|
26
32
|
}, {
|
|
27
33
|
authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
34
|
+
cleanupExpiredAuthVerifications: {};
|
|
35
|
+
createAuthVerification: {};
|
|
28
36
|
userSessionPayload: {};
|
|
37
|
+
validateAuthVerification: {};
|
|
38
|
+
}>>;
|
|
39
|
+
configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
40
|
+
config: {};
|
|
41
|
+
}>>;
|
|
42
|
+
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
43
|
+
EmailAdapter: {
|
|
44
|
+
isTypeOnly: true;
|
|
45
|
+
};
|
|
46
|
+
EmailAttachment: {
|
|
47
|
+
isTypeOnly: true;
|
|
48
|
+
};
|
|
49
|
+
EmailRawOptions: {
|
|
50
|
+
isTypeOnly: true;
|
|
51
|
+
};
|
|
52
|
+
EmailSendOptions: {
|
|
53
|
+
isTypeOnly: true;
|
|
54
|
+
};
|
|
55
|
+
sendEmail: {};
|
|
56
|
+
sendEmailQueue: {};
|
|
57
|
+
sendRawEmail: {};
|
|
58
|
+
TransformedEmailMessage: {
|
|
59
|
+
isTypeOnly: true;
|
|
60
|
+
};
|
|
29
61
|
}>>;
|
|
30
62
|
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
31
63
|
BadRequestError: {};
|
|
@@ -35,6 +67,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
35
67
|
InternalServerError: {};
|
|
36
68
|
logError: {};
|
|
37
69
|
NotFoundError: {};
|
|
70
|
+
TooManyRequestsError: {};
|
|
38
71
|
UnauthorizedError: {};
|
|
39
72
|
}>>;
|
|
40
73
|
passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -54,6 +87,19 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
54
87
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
55
88
|
prisma: {};
|
|
56
89
|
}>>;
|
|
90
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
91
|
+
createRateLimiter: {};
|
|
92
|
+
memoizeRateLimiter: {};
|
|
93
|
+
RateLimiter: {
|
|
94
|
+
isTypeOnly: true;
|
|
95
|
+
};
|
|
96
|
+
RateLimiterConfig: {
|
|
97
|
+
isTypeOnly: true;
|
|
98
|
+
};
|
|
99
|
+
RateLimitResult: {
|
|
100
|
+
isTypeOnly: true;
|
|
101
|
+
};
|
|
102
|
+
}>>;
|
|
57
103
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
58
104
|
createContextFromRequest: {};
|
|
59
105
|
RequestServiceContext: {
|
|
@@ -77,12 +123,22 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
77
123
|
templates: {
|
|
78
124
|
moduleGroup: {
|
|
79
125
|
constantsPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
|
|
126
|
+
schemaPasswordResetMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
127
|
+
pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
128
|
+
builder: {};
|
|
129
|
+
}>>;
|
|
130
|
+
}, {
|
|
131
|
+
servicesPasswordReset: {};
|
|
132
|
+
}>;
|
|
80
133
|
schemaUserPasswordMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
81
134
|
TPL_ADMIN_ROLES: {};
|
|
82
135
|
TPL_USER_OBJECT_TYPE: {};
|
|
83
136
|
}, {
|
|
84
137
|
authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
138
|
+
cleanupExpiredAuthVerifications: {};
|
|
139
|
+
createAuthVerification: {};
|
|
85
140
|
userSessionPayload: {};
|
|
141
|
+
validateAuthVerification: {};
|
|
86
142
|
}>>;
|
|
87
143
|
pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
88
144
|
builder: {};
|
|
@@ -90,6 +146,79 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
90
146
|
}, {
|
|
91
147
|
servicesUserPassword: {};
|
|
92
148
|
}>;
|
|
149
|
+
servicesPasswordReset: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
150
|
+
TPL_PASSWORD_CHANGED_EMAIL: {};
|
|
151
|
+
TPL_PASSWORD_RESET_EMAIL: {};
|
|
152
|
+
}, {
|
|
153
|
+
authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
154
|
+
cleanupExpiredAuthVerifications: {};
|
|
155
|
+
createAuthVerification: {};
|
|
156
|
+
userSessionPayload: {};
|
|
157
|
+
validateAuthVerification: {};
|
|
158
|
+
}>>;
|
|
159
|
+
configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
160
|
+
config: {};
|
|
161
|
+
}>>;
|
|
162
|
+
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
163
|
+
EmailAdapter: {
|
|
164
|
+
isTypeOnly: true;
|
|
165
|
+
};
|
|
166
|
+
EmailAttachment: {
|
|
167
|
+
isTypeOnly: true;
|
|
168
|
+
};
|
|
169
|
+
EmailRawOptions: {
|
|
170
|
+
isTypeOnly: true;
|
|
171
|
+
};
|
|
172
|
+
EmailSendOptions: {
|
|
173
|
+
isTypeOnly: true;
|
|
174
|
+
};
|
|
175
|
+
sendEmail: {};
|
|
176
|
+
sendEmailQueue: {};
|
|
177
|
+
sendRawEmail: {};
|
|
178
|
+
TransformedEmailMessage: {
|
|
179
|
+
isTypeOnly: true;
|
|
180
|
+
};
|
|
181
|
+
}>>;
|
|
182
|
+
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
183
|
+
BadRequestError: {};
|
|
184
|
+
ForbiddenError: {};
|
|
185
|
+
handleZodRequestValidationError: {};
|
|
186
|
+
HttpError: {};
|
|
187
|
+
InternalServerError: {};
|
|
188
|
+
logError: {};
|
|
189
|
+
NotFoundError: {};
|
|
190
|
+
TooManyRequestsError: {};
|
|
191
|
+
UnauthorizedError: {};
|
|
192
|
+
}>>;
|
|
193
|
+
passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
194
|
+
createPasswordHash: {};
|
|
195
|
+
verifyPasswordHash: {};
|
|
196
|
+
}>>;
|
|
197
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
198
|
+
prisma: {};
|
|
199
|
+
}>>;
|
|
200
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
201
|
+
createRateLimiter: {};
|
|
202
|
+
memoizeRateLimiter: {};
|
|
203
|
+
RateLimiter: {
|
|
204
|
+
isTypeOnly: true;
|
|
205
|
+
};
|
|
206
|
+
RateLimiterConfig: {
|
|
207
|
+
isTypeOnly: true;
|
|
208
|
+
};
|
|
209
|
+
RateLimitResult: {
|
|
210
|
+
isTypeOnly: true;
|
|
211
|
+
};
|
|
212
|
+
}>>;
|
|
213
|
+
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
214
|
+
createContextFromRequest: {};
|
|
215
|
+
RequestServiceContext: {
|
|
216
|
+
isTypeOnly: true;
|
|
217
|
+
};
|
|
218
|
+
}>>;
|
|
219
|
+
}, {
|
|
220
|
+
constantsPassword: {};
|
|
221
|
+
}>;
|
|
93
222
|
servicesUserPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
94
223
|
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
95
224
|
BadRequestError: {};
|
|
@@ -99,6 +228,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
99
228
|
InternalServerError: {};
|
|
100
229
|
logError: {};
|
|
101
230
|
NotFoundError: {};
|
|
231
|
+
TooManyRequestsError: {};
|
|
102
232
|
UnauthorizedError: {};
|
|
103
233
|
}>>;
|
|
104
234
|
passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -114,6 +244,19 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
114
244
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
115
245
|
prisma: {};
|
|
116
246
|
}>>;
|
|
247
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
248
|
+
createRateLimiter: {};
|
|
249
|
+
memoizeRateLimiter: {};
|
|
250
|
+
RateLimiter: {
|
|
251
|
+
isTypeOnly: true;
|
|
252
|
+
};
|
|
253
|
+
RateLimiterConfig: {
|
|
254
|
+
isTypeOnly: true;
|
|
255
|
+
};
|
|
256
|
+
RateLimitResult: {
|
|
257
|
+
isTypeOnly: true;
|
|
258
|
+
};
|
|
259
|
+
}>>;
|
|
117
260
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
118
261
|
createContextFromRequest: {};
|
|
119
262
|
RequestServiceContext: {
|
|
@@ -133,8 +276,84 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
133
276
|
}>>;
|
|
134
277
|
}, {
|
|
135
278
|
constantsPassword: {};
|
|
279
|
+
servicesEmailVerification: {};
|
|
136
280
|
}>;
|
|
137
281
|
};
|
|
282
|
+
schemaEmailVerificationMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
283
|
+
pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
284
|
+
builder: {};
|
|
285
|
+
}>>;
|
|
286
|
+
}, {
|
|
287
|
+
servicesEmailVerification: {};
|
|
288
|
+
}>;
|
|
289
|
+
servicesEmailVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
290
|
+
TPL_ACCOUNT_VERIFICATION_EMAIL: {};
|
|
291
|
+
}, {
|
|
292
|
+
authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
293
|
+
cleanupExpiredAuthVerifications: {};
|
|
294
|
+
createAuthVerification: {};
|
|
295
|
+
userSessionPayload: {};
|
|
296
|
+
validateAuthVerification: {};
|
|
297
|
+
}>>;
|
|
298
|
+
configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
299
|
+
config: {};
|
|
300
|
+
}>>;
|
|
301
|
+
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
302
|
+
EmailAdapter: {
|
|
303
|
+
isTypeOnly: true;
|
|
304
|
+
};
|
|
305
|
+
EmailAttachment: {
|
|
306
|
+
isTypeOnly: true;
|
|
307
|
+
};
|
|
308
|
+
EmailRawOptions: {
|
|
309
|
+
isTypeOnly: true;
|
|
310
|
+
};
|
|
311
|
+
EmailSendOptions: {
|
|
312
|
+
isTypeOnly: true;
|
|
313
|
+
};
|
|
314
|
+
sendEmail: {};
|
|
315
|
+
sendEmailQueue: {};
|
|
316
|
+
sendRawEmail: {};
|
|
317
|
+
TransformedEmailMessage: {
|
|
318
|
+
isTypeOnly: true;
|
|
319
|
+
};
|
|
320
|
+
}>>;
|
|
321
|
+
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
322
|
+
BadRequestError: {};
|
|
323
|
+
ForbiddenError: {};
|
|
324
|
+
handleZodRequestValidationError: {};
|
|
325
|
+
HttpError: {};
|
|
326
|
+
InternalServerError: {};
|
|
327
|
+
logError: {};
|
|
328
|
+
NotFoundError: {};
|
|
329
|
+
TooManyRequestsError: {};
|
|
330
|
+
UnauthorizedError: {};
|
|
331
|
+
}>>;
|
|
332
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
333
|
+
prisma: {};
|
|
334
|
+
}>>;
|
|
335
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
336
|
+
createRateLimiter: {};
|
|
337
|
+
memoizeRateLimiter: {};
|
|
338
|
+
RateLimiter: {
|
|
339
|
+
isTypeOnly: true;
|
|
340
|
+
};
|
|
341
|
+
RateLimiterConfig: {
|
|
342
|
+
isTypeOnly: true;
|
|
343
|
+
};
|
|
344
|
+
RateLimitResult: {
|
|
345
|
+
isTypeOnly: true;
|
|
346
|
+
};
|
|
347
|
+
}>>;
|
|
348
|
+
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
349
|
+
createContextFromRequest: {};
|
|
350
|
+
RequestServiceContext: {
|
|
351
|
+
isTypeOnly: true;
|
|
352
|
+
};
|
|
353
|
+
}>>;
|
|
354
|
+
}, {
|
|
355
|
+
constantsPassword: {};
|
|
356
|
+
}>;
|
|
138
357
|
};
|
|
139
358
|
};
|
|
140
359
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-password/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6CAA6C
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-password/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,6CAA6C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKzD,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
export interface LocalAuthCoreAuthEmailPasswordPaths {
|
|
2
2
|
constantsPassword: string;
|
|
3
|
+
schemaEmailVerificationMutations: string;
|
|
4
|
+
schemaPasswordResetMutations: string;
|
|
3
5
|
schemaUserPasswordMutations: string;
|
|
6
|
+
servicesEmailVerification: string;
|
|
7
|
+
servicesPasswordReset: string;
|
|
4
8
|
servicesUserPassword: string;
|
|
5
9
|
}
|
|
6
10
|
export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_PATHS: {
|
package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-password/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,mCAAmC;IAClD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,2BAA2B,EAAE,MAAM,CAAC;IACpC,oBAAoB,EAAE,MAAM,CAAC;CAC9B;
|
|
1
|
+
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-password/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,mCAAmC;IAClD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,gCAAgC,EAAE,MAAM,CAAC;IACzC,4BAA4B,EAAE,MAAM,CAAC;IACrC,2BAA2B,EAAE,MAAM,CAAC;IACpC,yBAAyB,EAAE,MAAM,CAAC;IAClC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAgCD,eAAO,MAAM,yCAAyC;;;;;;;CAGrD,CAAC"}
|
|
@@ -12,7 +12,11 @@ const localAuthCoreAuthEmailPasswordPathsTask = createGeneratorTask({
|
|
|
12
12
|
providers: {
|
|
13
13
|
localAuthCoreAuthEmailPasswordPaths: {
|
|
14
14
|
constantsPassword: `${moduleRoot}/constants/password.constants.ts`,
|
|
15
|
+
schemaEmailVerificationMutations: `${moduleRoot}/schema/email-verification.mutations.ts`,
|
|
16
|
+
schemaPasswordResetMutations: `${moduleRoot}/schema/password-reset.mutations.ts`,
|
|
15
17
|
schemaUserPasswordMutations: `${moduleRoot}/schema/user-password.mutations.ts`,
|
|
18
|
+
servicesEmailVerification: `${moduleRoot}/services/email-verification.service.ts`,
|
|
19
|
+
servicesPasswordReset: `${moduleRoot}/services/password-reset.service.ts`,
|
|
16
20
|
servicesUserPassword: `${moduleRoot}/services/user-password.service.ts`,
|
|
17
21
|
},
|
|
18
22
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-email-password/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-email-password/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAY9E,MAAM,mCAAmC,GACvC,kBAAkB,CAChB,2CAA2C,CAC5C,CAAC;AAEJ,MAAM,uCAAuC,GAAG,mBAAmB,CAAC;IAClE,YAAY,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE;IAC9C,OAAO,EAAE;QACP,mCAAmC,EACjC,mCAAmC,CAAC,MAAM,EAAE;KAC/C;IACD,GAAG,CAAC,EAAE,SAAS,EAAE;QACf,MAAM,UAAU,GAAG,SAAS,CAAC,eAAe,EAAE,CAAC;QAE/C,OAAO;YACL,SAAS,EAAE;gBACT,mCAAmC,EAAE;oBACnC,iBAAiB,EAAE,GAAG,UAAU,kCAAkC;oBAClE,gCAAgC,EAAE,GAAG,UAAU,yCAAyC;oBACxF,4BAA4B,EAAE,GAAG,UAAU,qCAAqC;oBAChF,2BAA2B,EAAE,GAAG,UAAU,oCAAoC;oBAC9E,yBAAyB,EAAE,GAAG,UAAU,yCAAyC;oBACjF,qBAAqB,EAAE,GAAG,UAAU,qCAAqC;oBACzE,oBAAoB,EAAE,GAAG,UAAU,oCAAoC;iBACxE;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yCAAyC,GAAG;IACvD,QAAQ,EAAE,mCAAmC;IAC7C,IAAI,EAAE,uCAAuC;CAC9C,CAAC"}
|