@baseplate-dev/plugin-auth 4.0.1 → 4.0.2
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 +621 -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 +49 -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 +17 -6
- 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 +209 -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 +5 -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 +5 -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 +48 -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 +253 -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 +102 -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/auth-verification.service.d.ts +40 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js +106 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/auth-verification.service.ts +146 -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 +88 -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 +141 -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 +157 -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 +233 -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 +1 -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 +1 -1
- 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 +2 -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-renderers.d.ts +1 -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/typed-templates.d.ts +1 -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/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-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-DKJVe6Rd.js} +3 -3
- package/dist/web/assets/{__federation_expose_auth0CoreCommon-DLSGXjCI.js.map → __federation_expose_auth0CoreCommon-DKJVe6Rd.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-C7FfhlmF.js → __federation_expose_auth0CoreWeb-CfhSWZsK.js} +5 -5
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-C7FfhlmF.js.map → __federation_expose_auth0CoreWeb-CfhSWZsK.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreCommon-BF58isGa.js → __federation_expose_authCoreCommon-D3-Gk9mI.js} +3 -3
- package/dist/web/assets/{__federation_expose_authCoreCommon-BF58isGa.js.map → __federation_expose_authCoreCommon-D3-Gk9mI.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_authCoreWeb-DMq9M88g.js → __federation_expose_authCoreWeb-DZoAij9e.js} +6 -6
- package/dist/web/assets/{__federation_expose_authCoreWeb-DMq9M88g.js.map → __federation_expose_authCoreWeb-DZoAij9e.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-sQw4q5YX.js → __federation_expose_local-authAdminCommon-BRHnF0Hn.js} +2 -2
- package/dist/web/assets/{__federation_expose_local-authAdminCommon-sQw4q5YX.js.map → __federation_expose_local-authAdminCommon-BRHnF0Hn.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-9FbO89NR.js → __federation_expose_local-authAdminWeb-dYAIxuqC.js} +3 -3
- package/dist/web/assets/{__federation_expose_local-authAdminWeb-9FbO89NR.js.map → __federation_expose_local-authAdminWeb-dYAIxuqC.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-CpUK09_4.js → __federation_expose_local-authCoreCommon-CIwvOx0d.js} +4 -4
- package/dist/web/assets/{__federation_expose_local-authCoreCommon-CpUK09_4.js.map → __federation_expose_local-authCoreCommon-CIwvOx0d.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_local-authCoreWeb-Czp0GaY1.js → __federation_expose_local-authCoreWeb-Bwooi2qZ.js} +66 -6
- package/dist/web/assets/__federation_expose_local-authCoreWeb-Bwooi2qZ.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js → __federation_expose_placeholder-authCoreCommon-gFDSzGjB.js} +3 -3
- package/dist/web/assets/{__federation_expose_placeholder-authCoreCommon-CFDDdOMo.js.map → __federation_expose_placeholder-authCoreCommon-gFDSzGjB.js.map} +1 -1
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js → __federation_expose_placeholder-authCoreWeb-BZLwIkLk.js} +5 -5
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-Bcn1_oDP.js.map → __federation_expose_placeholder-authCoreWeb-BZLwIkLk.js.map} +1 -1
- package/dist/web/assets/{__federation_fn_import-DsXcpNlB.js → __federation_fn_import-pxYUpmb_.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-DsXcpNlB.js.map → __federation_fn_import-pxYUpmb_.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-zqe3PPcn.js → web-BXi2UCP-.js} +7 -7
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-BXi2UCP-.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-CmgMfkI5.js → project-builder-lib-O0clDXMb.js} +7137 -136
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-O0clDXMb.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js +52536 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BpuFQk6s.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{utils-BO5VHrCf.js → utils-UiZ-8JBg.js} +5 -6
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-UiZ-8JBg.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/{react-router-CNzDweD5.js → react-router-BPEAtEJI.js} +1069 -746
- package/dist/web/assets/__federation_shared_@tanstack/react-router-BPEAtEJI.js.map +1 -0
- package/dist/web/assets/{get-auth-plugin-definition-BV2O8wTa.js → get-auth-plugin-definition-DPsrvQbo.js} +2 -2
- package/dist/web/assets/{get-auth-plugin-definition-BV2O8wTa.js.map → get-auth-plugin-definition-DPsrvQbo.js.map} +1 -1
- package/dist/web/assets/{index-BL7fotl7.js → index-CSfs0UAV.js} +2 -2
- package/dist/web/assets/{index-BL7fotl7.js.map → index-CSfs0UAV.js.map} +1 -1
- package/dist/web/assets/{index.esm-B4RpOlq_.js → index.esm-BoRQu8mM.js} +2 -2
- package/dist/web/assets/{index.esm-B4RpOlq_.js.map → index.esm-BoRQu8mM.js.map} +1 -1
- package/dist/web/assets/{model-merger-BwRNqcBu.js → model-merger-CdjliK9v.js} +80 -23
- package/dist/web/assets/model-merger-CdjliK9v.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-CHD5r-h7.js → plugin-definition-BG6tu7Hh.js} +3 -3
- package/dist/web/assets/plugin-definition-BG6tu7Hh.js.map +1 -0
- package/dist/web/assets/{plugin-definition-DA9rJBcS.js → plugin-definition-BMYDEj3f.js} +3 -3
- package/dist/web/assets/plugin-definition-BMYDEj3f.js.map +1 -0
- package/dist/web/assets/{plugin-definition-B9d2CoQL.js → plugin-definition-DRhTuQas.js} +2 -2
- package/dist/web/assets/{plugin-definition-B9d2CoQL.js.map → plugin-definition-DRhTuQas.js.map} +1 -1
- package/dist/web/assets/{plugin-definition-BMTsmwyH.js → plugin-definition-j1nJ0FFI.js} +2 -2
- package/dist/web/assets/{plugin-definition-BMTsmwyH.js.map → plugin-definition-j1nJ0FFI.js.map} +1 -1
- package/dist/web/assets/{react-B9vhIZMy.js → react-CBhSWxr_.js} +2 -2
- package/dist/web/assets/{react-B9vhIZMy.js.map → react-CBhSWxr_.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-BbHyE-2h.js} +3 -3
- package/dist/web/assets/{styles-CEm5K1iU.js.map → styles-BbHyE-2h.js.map} +1 -1
- package/dist/web/index.html +1 -1
- package/package.json +21 -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 +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>;
|
|
@@ -25,6 +32,29 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
|
|
|
25
32
|
authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
26
33
|
userSessionPayload: {};
|
|
27
34
|
}>>;
|
|
35
|
+
configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
36
|
+
config: {};
|
|
37
|
+
}>>;
|
|
38
|
+
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
39
|
+
EmailAdapter: {
|
|
40
|
+
isTypeOnly: true;
|
|
41
|
+
};
|
|
42
|
+
EmailAttachment: {
|
|
43
|
+
isTypeOnly: true;
|
|
44
|
+
};
|
|
45
|
+
EmailRawOptions: {
|
|
46
|
+
isTypeOnly: true;
|
|
47
|
+
};
|
|
48
|
+
EmailSendOptions: {
|
|
49
|
+
isTypeOnly: true;
|
|
50
|
+
};
|
|
51
|
+
sendEmail: {};
|
|
52
|
+
sendEmailQueue: {};
|
|
53
|
+
sendRawEmail: {};
|
|
54
|
+
TransformedEmailMessage: {
|
|
55
|
+
isTypeOnly: true;
|
|
56
|
+
};
|
|
57
|
+
}>>;
|
|
28
58
|
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
29
59
|
BadRequestError: {};
|
|
30
60
|
ForbiddenError: {};
|
|
@@ -33,6 +63,7 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
|
|
|
33
63
|
InternalServerError: {};
|
|
34
64
|
logError: {};
|
|
35
65
|
NotFoundError: {};
|
|
66
|
+
TooManyRequestsError: {};
|
|
36
67
|
UnauthorizedError: {};
|
|
37
68
|
}>>;
|
|
38
69
|
passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -52,6 +83,19 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
|
|
|
52
83
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
53
84
|
prisma: {};
|
|
54
85
|
}>>;
|
|
86
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
87
|
+
createRateLimiter: {};
|
|
88
|
+
memoizeRateLimiter: {};
|
|
89
|
+
RateLimiter: {
|
|
90
|
+
isTypeOnly: true;
|
|
91
|
+
};
|
|
92
|
+
RateLimiterConfig: {
|
|
93
|
+
isTypeOnly: true;
|
|
94
|
+
};
|
|
95
|
+
RateLimitResult: {
|
|
96
|
+
isTypeOnly: true;
|
|
97
|
+
};
|
|
98
|
+
}>>;
|
|
55
99
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
56
100
|
createContextFromRequest: {};
|
|
57
101
|
RequestServiceContext: {
|
|
@@ -71,6 +115,11 @@ export declare const authEmailPasswordGenerator: import("@baseplate-dev/sync").G
|
|
|
71
115
|
};
|
|
72
116
|
}>>;
|
|
73
117
|
}, undefined>;
|
|
118
|
+
config: import("@baseplate-dev/sync").GeneratorTask<undefined, {
|
|
119
|
+
provider: import("@baseplate-dev/sync").ProviderType<Omit<import("@baseplate-dev/utils").FieldMap<{
|
|
120
|
+
configFields: import("@baseplate-dev/utils").MapContainer<string, import("@baseplate-dev/fastify-generators/src/index.js").ConfigServiceField>;
|
|
121
|
+
}>, "getValues">>;
|
|
122
|
+
}, undefined>;
|
|
74
123
|
appModule: import("@baseplate-dev/sync").GeneratorTask<any, {
|
|
75
124
|
paths: import("@baseplate-dev/sync").ProviderType<import("./generated/template-paths.js").LocalAuthCoreAuthEmailPasswordPaths>;
|
|
76
125
|
appModule: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/fastify-generators/src/index.js").AppModuleProvider>;
|
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":"AAwBA;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgErC,CAAC"}
|
package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { TsCodeUtils } from '@baseplate-dev/core-generators';
|
|
2
|
-
import { appModuleProvider, createPothosPrismaObjectTypeOutputName, pothosTypeOutputProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
|
-
import { createGenerator, createGeneratorTask } from '@baseplate-dev/sync';
|
|
1
|
+
import { tsCodeFragment, TsCodeUtils } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { appModuleProvider, configServiceProvider, createPothosPrismaObjectTypeOutputName, pothosTypeOutputProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
|
+
import { createGenerator, createGeneratorTask, createProviderTask, } from '@baseplate-dev/sync';
|
|
4
4
|
import { quot } from '@baseplate-dev/utils';
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import { LOCAL_AUTH_MODELS } from '#src/local-auth/constants/model-names.js';
|
|
7
7
|
import { LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED as GENERATED_TEMPLATES } from './generated/index.js';
|
|
8
8
|
const descriptorSchema = z.object({
|
|
9
9
|
adminRoles: z.array(z.string()),
|
|
10
|
+
devWebDomainPort: z.number(),
|
|
10
11
|
});
|
|
11
12
|
/**
|
|
12
13
|
* Sets up email / password authentication
|
|
@@ -15,17 +16,24 @@ export const authEmailPasswordGenerator = createGenerator({
|
|
|
15
16
|
name: 'local-auth/core/auth-email-password',
|
|
16
17
|
generatorFileUrl: import.meta.url,
|
|
17
18
|
descriptorSchema,
|
|
18
|
-
buildTasks: ({ adminRoles }) => ({
|
|
19
|
+
buildTasks: ({ adminRoles, devWebDomainPort }) => ({
|
|
19
20
|
paths: GENERATED_TEMPLATES.paths.task,
|
|
20
21
|
imports: GENERATED_TEMPLATES.imports.task,
|
|
21
22
|
renderers: GENERATED_TEMPLATES.renderers.task,
|
|
23
|
+
config: createProviderTask(configServiceProvider, (configService) => {
|
|
24
|
+
configService.configFields.set('AUTH_FRONTEND_URL', {
|
|
25
|
+
validator: tsCodeFragment('z.url()'),
|
|
26
|
+
comment: 'Frontend URL for authentication flows including password reset and email verification (e.g., https://app.example.com)',
|
|
27
|
+
exampleValue: `http://localhost:${devWebDomainPort}`,
|
|
28
|
+
});
|
|
29
|
+
}),
|
|
22
30
|
appModule: createGeneratorTask({
|
|
23
31
|
dependencies: {
|
|
24
32
|
paths: GENERATED_TEMPLATES.paths.provider,
|
|
25
33
|
appModule: appModuleProvider,
|
|
26
34
|
},
|
|
27
35
|
run({ paths, appModule }) {
|
|
28
|
-
appModule.moduleImports.push(paths.schemaUserPasswordMutations);
|
|
36
|
+
appModule.moduleImports.push(paths.schemaUserPasswordMutations, paths.schemaPasswordResetMutations, paths.schemaEmailVerificationMutations);
|
|
29
37
|
},
|
|
30
38
|
}),
|
|
31
39
|
main: createGeneratorTask({
|
|
@@ -41,11 +49,14 @@ export const authEmailPasswordGenerator = createGenerator({
|
|
|
41
49
|
await builder.apply(renderers.moduleGroup.render({
|
|
42
50
|
variables: {
|
|
43
51
|
schemaUserPasswordMutations: {
|
|
44
|
-
TPL_ADMIN_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted(adminRoles.map((r) => quot(r)).
|
|
52
|
+
TPL_ADMIN_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted(adminRoles.map((r) => quot(r)).toSorted()),
|
|
45
53
|
TPL_USER_OBJECT_TYPE: userObjectType.getTypeReference().fragment,
|
|
46
54
|
},
|
|
47
55
|
},
|
|
48
56
|
}));
|
|
57
|
+
await builder.apply(renderers.servicesAuthVerification.render({}));
|
|
58
|
+
await builder.apply(renderers.servicesEmailVerification.render({}));
|
|
59
|
+
await builder.apply(renderers.schemaEmailVerificationMutations.render({}));
|
|
49
60
|
},
|
|
50
61
|
};
|
|
51
62
|
},
|
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,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,cAAc,EAAE,wBAAwB;qBACrC,UAAU,EAAE;qBACZ,SAAS,CACR,sCAAsC,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAC/D;aACJ;YACD,GAAG,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE;gBAC/B,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;6BACF;yBACF,CAAC,CACH,CAAC;wBACF,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,wBAAwB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;wBACnE,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,yBAAyB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;wBACpE,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>;
|
|
@@ -27,6 +33,29 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
27
33
|
authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
28
34
|
userSessionPayload: {};
|
|
29
35
|
}>>;
|
|
36
|
+
configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
37
|
+
config: {};
|
|
38
|
+
}>>;
|
|
39
|
+
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
40
|
+
EmailAdapter: {
|
|
41
|
+
isTypeOnly: true;
|
|
42
|
+
};
|
|
43
|
+
EmailAttachment: {
|
|
44
|
+
isTypeOnly: true;
|
|
45
|
+
};
|
|
46
|
+
EmailRawOptions: {
|
|
47
|
+
isTypeOnly: true;
|
|
48
|
+
};
|
|
49
|
+
EmailSendOptions: {
|
|
50
|
+
isTypeOnly: true;
|
|
51
|
+
};
|
|
52
|
+
sendEmail: {};
|
|
53
|
+
sendEmailQueue: {};
|
|
54
|
+
sendRawEmail: {};
|
|
55
|
+
TransformedEmailMessage: {
|
|
56
|
+
isTypeOnly: true;
|
|
57
|
+
};
|
|
58
|
+
}>>;
|
|
30
59
|
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
31
60
|
BadRequestError: {};
|
|
32
61
|
ForbiddenError: {};
|
|
@@ -35,6 +64,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
35
64
|
InternalServerError: {};
|
|
36
65
|
logError: {};
|
|
37
66
|
NotFoundError: {};
|
|
67
|
+
TooManyRequestsError: {};
|
|
38
68
|
UnauthorizedError: {};
|
|
39
69
|
}>>;
|
|
40
70
|
passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -54,6 +84,19 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
54
84
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
55
85
|
prisma: {};
|
|
56
86
|
}>>;
|
|
87
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
88
|
+
createRateLimiter: {};
|
|
89
|
+
memoizeRateLimiter: {};
|
|
90
|
+
RateLimiter: {
|
|
91
|
+
isTypeOnly: true;
|
|
92
|
+
};
|
|
93
|
+
RateLimiterConfig: {
|
|
94
|
+
isTypeOnly: true;
|
|
95
|
+
};
|
|
96
|
+
RateLimitResult: {
|
|
97
|
+
isTypeOnly: true;
|
|
98
|
+
};
|
|
99
|
+
}>>;
|
|
57
100
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
58
101
|
createContextFromRequest: {};
|
|
59
102
|
RequestServiceContext: {
|
|
@@ -77,6 +120,13 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
77
120
|
templates: {
|
|
78
121
|
moduleGroup: {
|
|
79
122
|
constantsPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {}, Record<never, Record<never, never>>>;
|
|
123
|
+
schemaPasswordResetMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
124
|
+
pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
125
|
+
builder: {};
|
|
126
|
+
}>>;
|
|
127
|
+
}, {
|
|
128
|
+
servicesPasswordReset: {};
|
|
129
|
+
}>;
|
|
80
130
|
schemaUserPasswordMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
81
131
|
TPL_ADMIN_ROLES: {};
|
|
82
132
|
TPL_USER_OBJECT_TYPE: {};
|
|
@@ -90,6 +140,71 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
90
140
|
}, {
|
|
91
141
|
servicesUserPassword: {};
|
|
92
142
|
}>;
|
|
143
|
+
servicesPasswordReset: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
144
|
+
configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
145
|
+
config: {};
|
|
146
|
+
}>>;
|
|
147
|
+
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
148
|
+
EmailAdapter: {
|
|
149
|
+
isTypeOnly: true;
|
|
150
|
+
};
|
|
151
|
+
EmailAttachment: {
|
|
152
|
+
isTypeOnly: true;
|
|
153
|
+
};
|
|
154
|
+
EmailRawOptions: {
|
|
155
|
+
isTypeOnly: true;
|
|
156
|
+
};
|
|
157
|
+
EmailSendOptions: {
|
|
158
|
+
isTypeOnly: true;
|
|
159
|
+
};
|
|
160
|
+
sendEmail: {};
|
|
161
|
+
sendEmailQueue: {};
|
|
162
|
+
sendRawEmail: {};
|
|
163
|
+
TransformedEmailMessage: {
|
|
164
|
+
isTypeOnly: true;
|
|
165
|
+
};
|
|
166
|
+
}>>;
|
|
167
|
+
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
168
|
+
BadRequestError: {};
|
|
169
|
+
ForbiddenError: {};
|
|
170
|
+
handleZodRequestValidationError: {};
|
|
171
|
+
HttpError: {};
|
|
172
|
+
InternalServerError: {};
|
|
173
|
+
logError: {};
|
|
174
|
+
NotFoundError: {};
|
|
175
|
+
TooManyRequestsError: {};
|
|
176
|
+
UnauthorizedError: {};
|
|
177
|
+
}>>;
|
|
178
|
+
passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
179
|
+
createPasswordHash: {};
|
|
180
|
+
verifyPasswordHash: {};
|
|
181
|
+
}>>;
|
|
182
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
183
|
+
prisma: {};
|
|
184
|
+
}>>;
|
|
185
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
186
|
+
createRateLimiter: {};
|
|
187
|
+
memoizeRateLimiter: {};
|
|
188
|
+
RateLimiter: {
|
|
189
|
+
isTypeOnly: true;
|
|
190
|
+
};
|
|
191
|
+
RateLimiterConfig: {
|
|
192
|
+
isTypeOnly: true;
|
|
193
|
+
};
|
|
194
|
+
RateLimitResult: {
|
|
195
|
+
isTypeOnly: true;
|
|
196
|
+
};
|
|
197
|
+
}>>;
|
|
198
|
+
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
199
|
+
createContextFromRequest: {};
|
|
200
|
+
RequestServiceContext: {
|
|
201
|
+
isTypeOnly: true;
|
|
202
|
+
};
|
|
203
|
+
}>>;
|
|
204
|
+
}, {
|
|
205
|
+
constantsPassword: {};
|
|
206
|
+
servicesAuthVerification: {};
|
|
207
|
+
}>;
|
|
93
208
|
servicesUserPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
94
209
|
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
95
210
|
BadRequestError: {};
|
|
@@ -99,6 +214,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
99
214
|
InternalServerError: {};
|
|
100
215
|
logError: {};
|
|
101
216
|
NotFoundError: {};
|
|
217
|
+
TooManyRequestsError: {};
|
|
102
218
|
UnauthorizedError: {};
|
|
103
219
|
}>>;
|
|
104
220
|
passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -114,6 +230,19 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
114
230
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
115
231
|
prisma: {};
|
|
116
232
|
}>>;
|
|
233
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
234
|
+
createRateLimiter: {};
|
|
235
|
+
memoizeRateLimiter: {};
|
|
236
|
+
RateLimiter: {
|
|
237
|
+
isTypeOnly: true;
|
|
238
|
+
};
|
|
239
|
+
RateLimiterConfig: {
|
|
240
|
+
isTypeOnly: true;
|
|
241
|
+
};
|
|
242
|
+
RateLimitResult: {
|
|
243
|
+
isTypeOnly: true;
|
|
244
|
+
};
|
|
245
|
+
}>>;
|
|
117
246
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
118
247
|
createContextFromRequest: {};
|
|
119
248
|
RequestServiceContext: {
|
|
@@ -133,8 +262,88 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_GENERATED: {
|
|
|
133
262
|
}>>;
|
|
134
263
|
}, {
|
|
135
264
|
constantsPassword: {};
|
|
265
|
+
servicesEmailVerification: {};
|
|
136
266
|
}>;
|
|
137
267
|
};
|
|
268
|
+
schemaEmailVerificationMutations: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
269
|
+
pothosImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
270
|
+
builder: {};
|
|
271
|
+
}>>;
|
|
272
|
+
}, {
|
|
273
|
+
servicesEmailVerification: {};
|
|
274
|
+
}>;
|
|
275
|
+
servicesAuthVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
276
|
+
prismaGeneratedImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
277
|
+
PrismaClient: {};
|
|
278
|
+
Prisma: {};
|
|
279
|
+
'*': {};
|
|
280
|
+
$Enums: {};
|
|
281
|
+
}>>;
|
|
282
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
283
|
+
prisma: {};
|
|
284
|
+
}>>;
|
|
285
|
+
}, Record<never, Record<never, never>>>;
|
|
286
|
+
servicesEmailVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
287
|
+
configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
288
|
+
config: {};
|
|
289
|
+
}>>;
|
|
290
|
+
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
291
|
+
EmailAdapter: {
|
|
292
|
+
isTypeOnly: true;
|
|
293
|
+
};
|
|
294
|
+
EmailAttachment: {
|
|
295
|
+
isTypeOnly: true;
|
|
296
|
+
};
|
|
297
|
+
EmailRawOptions: {
|
|
298
|
+
isTypeOnly: true;
|
|
299
|
+
};
|
|
300
|
+
EmailSendOptions: {
|
|
301
|
+
isTypeOnly: true;
|
|
302
|
+
};
|
|
303
|
+
sendEmail: {};
|
|
304
|
+
sendEmailQueue: {};
|
|
305
|
+
sendRawEmail: {};
|
|
306
|
+
TransformedEmailMessage: {
|
|
307
|
+
isTypeOnly: true;
|
|
308
|
+
};
|
|
309
|
+
}>>;
|
|
310
|
+
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
311
|
+
BadRequestError: {};
|
|
312
|
+
ForbiddenError: {};
|
|
313
|
+
handleZodRequestValidationError: {};
|
|
314
|
+
HttpError: {};
|
|
315
|
+
InternalServerError: {};
|
|
316
|
+
logError: {};
|
|
317
|
+
NotFoundError: {};
|
|
318
|
+
TooManyRequestsError: {};
|
|
319
|
+
UnauthorizedError: {};
|
|
320
|
+
}>>;
|
|
321
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
322
|
+
prisma: {};
|
|
323
|
+
}>>;
|
|
324
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
325
|
+
createRateLimiter: {};
|
|
326
|
+
memoizeRateLimiter: {};
|
|
327
|
+
RateLimiter: {
|
|
328
|
+
isTypeOnly: true;
|
|
329
|
+
};
|
|
330
|
+
RateLimiterConfig: {
|
|
331
|
+
isTypeOnly: true;
|
|
332
|
+
};
|
|
333
|
+
RateLimitResult: {
|
|
334
|
+
isTypeOnly: true;
|
|
335
|
+
};
|
|
336
|
+
}>>;
|
|
337
|
+
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
338
|
+
createContextFromRequest: {};
|
|
339
|
+
RequestServiceContext: {
|
|
340
|
+
isTypeOnly: true;
|
|
341
|
+
};
|
|
342
|
+
}>>;
|
|
343
|
+
}, {
|
|
344
|
+
constantsPassword: {};
|
|
345
|
+
servicesAuthVerification: {};
|
|
346
|
+
}>;
|
|
138
347
|
};
|
|
139
348
|
};
|
|
140
349
|
//# 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,11 @@
|
|
|
1
1
|
export interface LocalAuthCoreAuthEmailPasswordPaths {
|
|
2
2
|
constantsPassword: string;
|
|
3
|
+
schemaEmailVerificationMutations: string;
|
|
4
|
+
schemaPasswordResetMutations: string;
|
|
3
5
|
schemaUserPasswordMutations: string;
|
|
6
|
+
servicesAuthVerification: string;
|
|
7
|
+
servicesEmailVerification: string;
|
|
8
|
+
servicesPasswordReset: string;
|
|
4
9
|
servicesUserPassword: string;
|
|
5
10
|
}
|
|
6
11
|
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,wBAAwB,EAAE,MAAM,CAAC;IACjC,yBAAyB,EAAE,MAAM,CAAC;IAClC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,oBAAoB,EAAE,MAAM,CAAC;CAC9B;AAiCD,eAAO,MAAM,yCAAyC;;;;;;;CAGrD,CAAC"}
|
|
@@ -12,7 +12,12 @@ 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
|
+
servicesAuthVerification: `${moduleRoot}/services/auth-verification.service.ts`,
|
|
19
|
+
servicesEmailVerification: `${moduleRoot}/services/email-verification.service.ts`,
|
|
20
|
+
servicesPasswordReset: `${moduleRoot}/services/password-reset.service.ts`,
|
|
16
21
|
servicesUserPassword: `${moduleRoot}/services/user-password.service.ts`,
|
|
17
22
|
},
|
|
18
23
|
},
|
|
@@ -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;AAa9E,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,wBAAwB,EAAE,GAAG,UAAU,wCAAwC;oBAC/E,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"}
|
package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
import type { RenderTsTemplateGroupActionInput } from '@baseplate-dev/core-generators';
|
|
1
|
+
import type { RenderTsTemplateFileActionInput, RenderTsTemplateGroupActionInput } from '@baseplate-dev/core-generators';
|
|
2
2
|
import type { BuilderAction } from '@baseplate-dev/sync';
|
|
3
3
|
import { LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES } from './typed-templates.js';
|
|
4
4
|
export interface LocalAuthCoreAuthEmailPasswordRenderers {
|
|
5
5
|
moduleGroup: {
|
|
6
6
|
render: (options: Omit<RenderTsTemplateGroupActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.moduleGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
|
|
7
7
|
};
|
|
8
|
+
schemaEmailVerificationMutations: {
|
|
9
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.schemaEmailVerificationMutations>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
10
|
+
};
|
|
11
|
+
servicesAuthVerification: {
|
|
12
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.servicesAuthVerification>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
13
|
+
};
|
|
14
|
+
servicesEmailVerification: {
|
|
15
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_TEMPLATES.servicesEmailVerification>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
16
|
+
};
|
|
8
17
|
}
|
|
9
18
|
export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_RENDERERS: {
|
|
10
19
|
provider: import("@baseplate-dev/sync").ProviderType<LocalAuthCoreAuthEmailPasswordRenderers>;
|
|
@@ -14,6 +23,29 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_RENDERERS: {
|
|
|
14
23
|
authModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
15
24
|
userSessionPayload: {};
|
|
16
25
|
}>>;
|
|
26
|
+
configServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
27
|
+
config: {};
|
|
28
|
+
}>>;
|
|
29
|
+
emailModuleImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
30
|
+
EmailAdapter: {
|
|
31
|
+
isTypeOnly: true;
|
|
32
|
+
};
|
|
33
|
+
EmailAttachment: {
|
|
34
|
+
isTypeOnly: true;
|
|
35
|
+
};
|
|
36
|
+
EmailRawOptions: {
|
|
37
|
+
isTypeOnly: true;
|
|
38
|
+
};
|
|
39
|
+
EmailSendOptions: {
|
|
40
|
+
isTypeOnly: true;
|
|
41
|
+
};
|
|
42
|
+
sendEmail: {};
|
|
43
|
+
sendEmailQueue: {};
|
|
44
|
+
sendRawEmail: {};
|
|
45
|
+
TransformedEmailMessage: {
|
|
46
|
+
isTypeOnly: true;
|
|
47
|
+
};
|
|
48
|
+
}>>;
|
|
17
49
|
errorHandlerServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
18
50
|
BadRequestError: {};
|
|
19
51
|
ForbiddenError: {};
|
|
@@ -22,6 +54,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_RENDERERS: {
|
|
|
22
54
|
InternalServerError: {};
|
|
23
55
|
logError: {};
|
|
24
56
|
NotFoundError: {};
|
|
57
|
+
TooManyRequestsError: {};
|
|
25
58
|
UnauthorizedError: {};
|
|
26
59
|
}>>;
|
|
27
60
|
passwordHasherServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -41,6 +74,19 @@ export declare const LOCAL_AUTH_CORE_AUTH_EMAIL_PASSWORD_RENDERERS: {
|
|
|
41
74
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
42
75
|
prisma: {};
|
|
43
76
|
}>>;
|
|
77
|
+
rateLimitImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
78
|
+
createRateLimiter: {};
|
|
79
|
+
memoizeRateLimiter: {};
|
|
80
|
+
RateLimiter: {
|
|
81
|
+
isTypeOnly: true;
|
|
82
|
+
};
|
|
83
|
+
RateLimiterConfig: {
|
|
84
|
+
isTypeOnly: true;
|
|
85
|
+
};
|
|
86
|
+
RateLimitResult: {
|
|
87
|
+
isTypeOnly: true;
|
|
88
|
+
};
|
|
89
|
+
}>>;
|
|
44
90
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
45
91
|
createContextFromRequest: {};
|
|
46
92
|
RequestServiceContext: {
|