@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,0BAA0B,EAAE,MAAM,CAAC;IACnC,kCAAkC,EAAE,MAAM,CAAC;IAC3C,wBAAwB,EAAE,MAAM,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;CAC7B;
|
|
1
|
+
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,4BAA4B;IAC3C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,6BAA6B,EAAE,MAAM,CAAC;IACtC,0BAA0B,EAAE,MAAM,CAAC;IACnC,kCAAkC,EAAE,MAAM,CAAC;IAC3C,wBAAwB,EAAE,MAAM,CAAC;IACjC,wBAAwB,EAAE,MAAM,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAqCD,eAAO,MAAM,iCAAiC;;;;;;;CAG7C,CAAC"}
|
|
@@ -13,9 +13,11 @@ const localAuthCoreAuthModulePathsTask = createGeneratorTask({
|
|
|
13
13
|
localAuthCoreAuthModulePaths: {
|
|
14
14
|
authRoleEnum: `${moduleRoot}/schema/auth-role.enum.ts`,
|
|
15
15
|
cookieSigner: `${moduleRoot}/utils/cookie-signer.ts`,
|
|
16
|
+
queuesCleanupAuthVerification: `${moduleRoot}/queues/cleanup-auth-verification.queue.ts`,
|
|
16
17
|
schemaUserSessionMutations: `${moduleRoot}/schema/user-session.mutations.ts`,
|
|
17
18
|
schemaUserSessionPayloadObjectType: `${moduleRoot}/schema/user-session-payload.object-type.ts`,
|
|
18
19
|
schemaUserSessionQueries: `${moduleRoot}/schema/user-session.queries.ts`,
|
|
20
|
+
servicesAuthVerification: `${moduleRoot}/services/auth-verification.service.ts`,
|
|
19
21
|
sessionCookie: `${moduleRoot}/utils/session-cookie.ts`,
|
|
20
22
|
userRolesMutations: `${moduleRoot}/schema/user-roles.mutations.ts`,
|
|
21
23
|
userRolesService: `${moduleRoot}/services/user-roles.service.ts`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAkB9E,MAAM,4BAA4B,GAChC,kBAAkB,CAChB,mCAAmC,CACpC,CAAC;AAEJ,MAAM,gCAAgC,GAAG,mBAAmB,CAAC;IAC3D,YAAY,EAAE,EAAE,SAAS,EAAE,iBAAiB,EAAE;IAC9C,OAAO,EAAE;QACP,4BAA4B,EAAE,4BAA4B,CAAC,MAAM,EAAE;KACpE;IACD,GAAG,CAAC,EAAE,SAAS,EAAE;QACf,MAAM,UAAU,GAAG,SAAS,CAAC,eAAe,EAAE,CAAC;QAE/C,OAAO;YACL,SAAS,EAAE;gBACT,4BAA4B,EAAE;oBAC5B,YAAY,EAAE,GAAG,UAAU,2BAA2B;oBACtD,YAAY,EAAE,GAAG,UAAU,yBAAyB;oBACpD,6BAA6B,EAAE,GAAG,UAAU,4CAA4C;oBACxF,0BAA0B,EAAE,GAAG,UAAU,mCAAmC;oBAC5E,kCAAkC,EAAE,GAAG,UAAU,6CAA6C;oBAC9F,wBAAwB,EAAE,GAAG,UAAU,iCAAiC;oBACxE,wBAAwB,EAAE,GAAG,UAAU,wCAAwC;oBAC/E,aAAa,EAAE,GAAG,UAAU,0BAA0B;oBACtD,kBAAkB,EAAE,GAAG,UAAU,iCAAiC;oBAClE,gBAAgB,EAAE,GAAG,UAAU,iCAAiC;oBAChE,oBAAoB,EAAE,GAAG,UAAU,sCAAsC;oBACzE,kBAAkB,EAAE,GAAG,UAAU,mCAAmC;oBACpE,mBAAmB,EAAE,GAAG,UAAU,iCAAiC;iBACpE;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,QAAQ,EAAE,4BAA4B;IACtC,IAAI,EAAE,gCAAgC;CACvC,CAAC"}
|
|
@@ -8,6 +8,12 @@ export interface LocalAuthCoreAuthModuleRenderers {
|
|
|
8
8
|
moduleGroup: {
|
|
9
9
|
render: (options: Omit<RenderTsTemplateGroupActionInput<typeof LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.moduleGroup>, 'importMapProviders' | 'group' | 'paths' | 'generatorPaths'>) => BuilderAction;
|
|
10
10
|
};
|
|
11
|
+
queuesCleanupAuthVerification: {
|
|
12
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.queuesCleanupAuthVerification>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
13
|
+
};
|
|
14
|
+
servicesAuthVerification: {
|
|
15
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.servicesAuthVerification>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
16
|
+
};
|
|
11
17
|
userSessionService: {
|
|
12
18
|
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.userSessionService>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
13
19
|
};
|
|
@@ -57,6 +63,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_RENDERERS: {
|
|
|
57
63
|
InternalServerError: {};
|
|
58
64
|
logError: {};
|
|
59
65
|
NotFoundError: {};
|
|
66
|
+
TooManyRequestsError: {};
|
|
60
67
|
UnauthorizedError: {};
|
|
61
68
|
}>>;
|
|
62
69
|
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreAuthModulePaths>;
|
|
@@ -72,6 +79,9 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_RENDERERS: {
|
|
|
72
79
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
73
80
|
prisma: {};
|
|
74
81
|
}>>;
|
|
82
|
+
queueServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
83
|
+
createQueue: {};
|
|
84
|
+
}>>;
|
|
75
85
|
requestServiceContextImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
76
86
|
createContextFromRequest: {};
|
|
77
87
|
RequestServiceContext: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,+BAA+B,EAC/B,gCAAgC,EACjC,MAAM,gCAAgC,CAAC;AACxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-renderers.ts"],"names":[],"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AAU,EAAE;QACV,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,gCAAgC,CAC9B,OAAO,qCAAqC,CAAC,UAAU,CACxD,EACD,oBAAoB,GAAG,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAC5D,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AA+HD,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGjD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { typescriptFileProvider } from '@baseplate-dev/core-generators';
|
|
2
2
|
import { authContextImportsProvider, authRolesImportsProvider, configServiceImportsProvider, errorHandlerServiceImportsProvider, pothosImportsProvider, prismaGeneratedImportsProvider, prismaImportsProvider, requestServiceContextImportsProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
|
+
import { queueServiceImportsProvider } from '@baseplate-dev/plugin-queue';
|
|
3
4
|
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
|
|
4
5
|
import { LOCAL_AUTH_CORE_AUTH_MODULE_PATHS } from './template-paths.js';
|
|
5
6
|
import { LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES } from './typed-templates.js';
|
|
@@ -14,6 +15,7 @@ const localAuthCoreAuthModuleRenderersTask = createGeneratorTask({
|
|
|
14
15
|
pothosImports: pothosImportsProvider,
|
|
15
16
|
prismaGeneratedImports: prismaGeneratedImportsProvider,
|
|
16
17
|
prismaImports: prismaImportsProvider,
|
|
18
|
+
queueServiceImports: queueServiceImportsProvider,
|
|
17
19
|
requestServiceContextImports: requestServiceContextImportsProvider,
|
|
18
20
|
typescriptFile: typescriptFileProvider,
|
|
19
21
|
userSessionTypesImports: userSessionTypesImportsProvider,
|
|
@@ -21,7 +23,7 @@ const localAuthCoreAuthModuleRenderersTask = createGeneratorTask({
|
|
|
21
23
|
exports: {
|
|
22
24
|
localAuthCoreAuthModuleRenderers: localAuthCoreAuthModuleRenderers.export(),
|
|
23
25
|
},
|
|
24
|
-
run({ authContextImports, authRolesImports, configServiceImports, errorHandlerServiceImports, paths, pothosImports, prismaGeneratedImports, prismaImports, requestServiceContextImports, typescriptFile, userSessionTypesImports, }) {
|
|
26
|
+
run({ authContextImports, authRolesImports, configServiceImports, errorHandlerServiceImports, paths, pothosImports, prismaGeneratedImports, prismaImports, queueServiceImports, requestServiceContextImports, typescriptFile, userSessionTypesImports, }) {
|
|
25
27
|
return {
|
|
26
28
|
providers: {
|
|
27
29
|
localAuthCoreAuthModuleRenderers: {
|
|
@@ -46,6 +48,28 @@ const localAuthCoreAuthModuleRenderersTask = createGeneratorTask({
|
|
|
46
48
|
...options,
|
|
47
49
|
}),
|
|
48
50
|
},
|
|
51
|
+
queuesCleanupAuthVerification: {
|
|
52
|
+
render: (options) => typescriptFile.renderTemplateFile({
|
|
53
|
+
template: LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.queuesCleanupAuthVerification,
|
|
54
|
+
destination: paths.queuesCleanupAuthVerification,
|
|
55
|
+
importMapProviders: {
|
|
56
|
+
queueServiceImports,
|
|
57
|
+
},
|
|
58
|
+
generatorPaths: paths,
|
|
59
|
+
...options,
|
|
60
|
+
}),
|
|
61
|
+
},
|
|
62
|
+
servicesAuthVerification: {
|
|
63
|
+
render: (options) => typescriptFile.renderTemplateFile({
|
|
64
|
+
template: LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.servicesAuthVerification,
|
|
65
|
+
destination: paths.servicesAuthVerification,
|
|
66
|
+
importMapProviders: {
|
|
67
|
+
prismaGeneratedImports,
|
|
68
|
+
prismaImports,
|
|
69
|
+
},
|
|
70
|
+
...options,
|
|
71
|
+
}),
|
|
72
|
+
},
|
|
49
73
|
userSessionService: {
|
|
50
74
|
render: (options) => typescriptFile.renderTemplateFile({
|
|
51
75
|
template: LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES.userSessionService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-renderers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,qBAAqB,EACrB,8BAA8B,EAC9B,qBAAqB,EACrB,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,qCAAqC,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"template-renderers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/template-renderers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,qBAAqB,EACrB,8BAA8B,EAC9B,qBAAqB,EACrB,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,2BAA2B,EAAE,MAAM,6BAA6B,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAE9E,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,qCAAqC,EAAE,MAAM,sBAAsB,CAAC;AAiE7E,MAAM,gCAAgC,GACpC,kBAAkB,CAChB,uCAAuC,CACxC,CAAC;AAEJ,MAAM,oCAAoC,GAAG,mBAAmB,CAAC;IAC/D,YAAY,EAAE;QACZ,kBAAkB,EAAE,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
1
1
|
import type { TsImportMapProviderFromSchema } from '@baseplate-dev/core-generators';
|
|
2
2
|
export declare const authModuleImportsSchema: {
|
|
3
|
+
cleanupExpiredAuthVerifications: {};
|
|
4
|
+
createAuthVerification: {};
|
|
3
5
|
userSessionPayload: {};
|
|
6
|
+
validateAuthVerification: {};
|
|
4
7
|
};
|
|
5
8
|
export type AuthModuleImportsProvider = TsImportMapProviderFromSchema<typeof authModuleImportsSchema>;
|
|
6
9
|
export declare const authModuleImportsProvider: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
10
|
+
cleanupExpiredAuthVerifications: {};
|
|
11
|
+
createAuthVerification: {};
|
|
7
12
|
userSessionPayload: {};
|
|
13
|
+
validateAuthVerification: {};
|
|
8
14
|
}>>;
|
|
9
15
|
export declare const LOCAL_AUTH_CORE_AUTH_MODULE_IMPORTS: {
|
|
10
16
|
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
11
17
|
authModuleImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
18
|
+
cleanupExpiredAuthVerifications: {};
|
|
19
|
+
createAuthVerification: {};
|
|
12
20
|
userSessionPayload: {};
|
|
21
|
+
validateAuthVerification: {};
|
|
13
22
|
}>>;
|
|
14
23
|
userSessionServiceImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
15
24
|
userSessionService: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAkBpF,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"ts-import-providers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/ts-import-providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAkBpF,eAAO,MAAM,uBAAuB;;;;;CAKlC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,6BAA6B,CACnE,OAAO,uBAAuB,CAC/B,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;GACwC,CAAC;AA6B/E,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;CAE/C,CAAC"}
|
|
@@ -3,7 +3,10 @@ import { userSessionServiceImportsProvider, userSessionServiceImportsSchema, } f
|
|
|
3
3
|
import { createGeneratorTask, createReadOnlyProviderType, } from '@baseplate-dev/sync';
|
|
4
4
|
import { LOCAL_AUTH_CORE_AUTH_MODULE_PATHS } from './template-paths.js';
|
|
5
5
|
export const authModuleImportsSchema = createTsImportMapSchema({
|
|
6
|
+
cleanupExpiredAuthVerifications: {},
|
|
7
|
+
createAuthVerification: {},
|
|
6
8
|
userSessionPayload: {},
|
|
9
|
+
validateAuthVerification: {},
|
|
7
10
|
});
|
|
8
11
|
export const authModuleImportsProvider = createReadOnlyProviderType('auth-module-imports');
|
|
9
12
|
const localAuthCoreAuthModuleImportsTask = createGeneratorTask({
|
|
@@ -18,7 +21,10 @@ const localAuthCoreAuthModuleImportsTask = createGeneratorTask({
|
|
|
18
21
|
return {
|
|
19
22
|
providers: {
|
|
20
23
|
authModuleImports: createTsImportMap(authModuleImportsSchema, {
|
|
24
|
+
cleanupExpiredAuthVerifications: paths.servicesAuthVerification,
|
|
25
|
+
createAuthVerification: paths.servicesAuthVerification,
|
|
21
26
|
userSessionPayload: paths.schemaUserSessionPayloadObjectType,
|
|
27
|
+
validateAuthVerification: paths.servicesAuthVerification,
|
|
22
28
|
}),
|
|
23
29
|
userSessionServiceImports: createTsImportMap(userSessionServiceImportsSchema, { userSessionService: paths.userSessionService }),
|
|
24
30
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/ts-import-providers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAExE,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;IAC7D,kBAAkB,EAAE,EAAE;
|
|
1
|
+
{"version":3,"file":"ts-import-providers.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/ts-import-providers.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,YAAY,GACb,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,iCAAiC,EACjC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAC3B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,iCAAiC,EAAE,MAAM,qBAAqB,CAAC;AAExE,MAAM,CAAC,MAAM,uBAAuB,GAAG,uBAAuB,CAAC;IAC7D,+BAA+B,EAAE,EAAE;IACnC,sBAAsB,EAAE,EAAE;IAC1B,kBAAkB,EAAE,EAAE;IACtB,wBAAwB,EAAE,EAAE;CAC7B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,yBAAyB,GACpC,0BAA0B,CAA4B,qBAAqB,CAAC,CAAC;AAE/E,MAAM,kCAAkC,GAAG,mBAAmB,CAAC;IAC7D,YAAY,EAAE;QACZ,KAAK,EAAE,iCAAiC,CAAC,QAAQ;KAClD;IACD,OAAO,EAAE;QACP,iBAAiB,EAAE,yBAAyB,CAAC,MAAM,CAAC,YAAY,CAAC;QACjE,yBAAyB,EACvB,iCAAiC,CAAC,MAAM,CAAC,YAAY,CAAC;KACzD;IACD,GAAG,CAAC,EAAE,KAAK,EAAE;QACX,OAAO;YACL,SAAS,EAAE;gBACT,iBAAiB,EAAE,iBAAiB,CAAC,uBAAuB,EAAE;oBAC5D,+BAA+B,EAAE,KAAK,CAAC,wBAAwB;oBAC/D,sBAAsB,EAAE,KAAK,CAAC,wBAAwB;oBACtD,kBAAkB,EAAE,KAAK,CAAC,kCAAkC;oBAC5D,wBAAwB,EAAE,KAAK,CAAC,wBAAwB;iBACzD,CAAC;gBACF,yBAAyB,EAAE,iBAAiB,CAC1C,+BAA+B,EAC/B,EAAE,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,EAAE,CACjD;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG;IACjD,IAAI,EAAE,kCAAkC;CACzC,CAAC"}
|
|
@@ -172,6 +172,24 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES: {
|
|
|
172
172
|
}>>;
|
|
173
173
|
}, Record<never, Record<never, never>>>;
|
|
174
174
|
};
|
|
175
|
+
queuesCleanupAuthVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
176
|
+
queueServiceImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
177
|
+
createQueue: {};
|
|
178
|
+
}>>;
|
|
179
|
+
}, {
|
|
180
|
+
servicesAuthVerification: {};
|
|
181
|
+
}>;
|
|
182
|
+
servicesAuthVerification: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
183
|
+
prismaGeneratedImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
184
|
+
PrismaClient: {};
|
|
185
|
+
Prisma: {};
|
|
186
|
+
'*': {};
|
|
187
|
+
$Enums: {};
|
|
188
|
+
}>>;
|
|
189
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
190
|
+
prisma: {};
|
|
191
|
+
}>>;
|
|
192
|
+
}, Record<never, Record<never, never>>>;
|
|
175
193
|
userSessionService: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
176
194
|
TPL_PRISMA_USER_SESSION: {};
|
|
177
195
|
}, {
|
|
@@ -212,6 +230,7 @@ export declare const LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES: {
|
|
|
212
230
|
InternalServerError: {};
|
|
213
231
|
logError: {};
|
|
214
232
|
NotFoundError: {};
|
|
233
|
+
TooManyRequestsError: {};
|
|
215
234
|
UnauthorizedError: {};
|
|
216
235
|
}>>;
|
|
217
236
|
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/typed-templates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/typed-templates.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,cAAc;;CAA2B,CAAC;AAwGvD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOvB,CAAC;AA2GF,eAAO,MAAM,UAAU;;;;;;;;CAAuD,CAAC;AAE/E,eAAO,MAAM,qCAAqC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAOjD,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createTsTemplateFile } from '@baseplate-dev/core-generators';
|
|
2
2
|
import { authContextImportsProvider, authRolesImportsProvider, configServiceImportsProvider, errorHandlerServiceImportsProvider, pothosImportsProvider, prismaGeneratedImportsProvider, prismaImportsProvider, requestServiceContextImportsProvider, userSessionTypesImportsProvider, } from '@baseplate-dev/fastify-generators';
|
|
3
|
+
import { queueServiceImportsProvider } from '@baseplate-dev/plugin-queue';
|
|
3
4
|
import path from 'node:path';
|
|
4
5
|
const userSessionConstants = createTsTemplateFile({
|
|
5
6
|
fileOptions: { kind: 'singleton' },
|
|
@@ -98,6 +99,33 @@ export const moduleGroup = {
|
|
|
98
99
|
userRolesMutations,
|
|
99
100
|
userRolesService,
|
|
100
101
|
};
|
|
102
|
+
const queuesCleanupAuthVerification = createTsTemplateFile({
|
|
103
|
+
fileOptions: { kind: 'singleton' },
|
|
104
|
+
importMapProviders: { queueServiceImports: queueServiceImportsProvider },
|
|
105
|
+
name: 'queues-cleanup-auth-verification',
|
|
106
|
+
referencedGeneratorTemplates: { servicesAuthVerification: {} },
|
|
107
|
+
source: {
|
|
108
|
+
path: path.join(import.meta.dirname, '../templates/module/queues/cleanup-auth-verification.queue.ts'),
|
|
109
|
+
},
|
|
110
|
+
variables: {},
|
|
111
|
+
});
|
|
112
|
+
const servicesAuthVerification = createTsTemplateFile({
|
|
113
|
+
fileOptions: { kind: 'singleton' },
|
|
114
|
+
importMapProviders: {
|
|
115
|
+
prismaGeneratedImports: prismaGeneratedImportsProvider,
|
|
116
|
+
prismaImports: prismaImportsProvider,
|
|
117
|
+
},
|
|
118
|
+
name: 'services-auth-verification',
|
|
119
|
+
projectExports: {
|
|
120
|
+
cleanupExpiredAuthVerifications: { isTypeOnly: false },
|
|
121
|
+
createAuthVerification: { isTypeOnly: false },
|
|
122
|
+
validateAuthVerification: { isTypeOnly: false },
|
|
123
|
+
},
|
|
124
|
+
source: {
|
|
125
|
+
path: path.join(import.meta.dirname, '../templates/module/services/auth-verification.service.ts'),
|
|
126
|
+
},
|
|
127
|
+
variables: {},
|
|
128
|
+
});
|
|
101
129
|
const userSessionService = createTsTemplateFile({
|
|
102
130
|
fileOptions: { kind: 'singleton' },
|
|
103
131
|
importMapProviders: {
|
|
@@ -156,6 +184,8 @@ export const utilsGroup = { cookieSigner, sessionCookie, verifyRequestOrigin };
|
|
|
156
184
|
export const LOCAL_AUTH_CORE_AUTH_MODULE_TEMPLATES = {
|
|
157
185
|
constantsGroup,
|
|
158
186
|
moduleGroup,
|
|
187
|
+
queuesCleanupAuthVerification,
|
|
188
|
+
servicesAuthVerification,
|
|
159
189
|
userSessionService,
|
|
160
190
|
utilsGroup,
|
|
161
191
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,4BAA4B,EAC5B,kCAAkC,EAClC,qBAAqB,EACrB,8BAA8B,EAC9B,qBAAqB,EACrB,oCAAoC,EACpC,+BAA+B,GAChC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;IAChD,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,WAAW;IAClB,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,wBAAwB;IAC9B,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,yDAAyD,CAC1D;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM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IAAI,EAAE,eAAe;IACrB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,4CAA4C,CAC7C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,aAAa,GAAG,oBAAoB,CAAC;IACzC,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE,oBAAoB,EAAE,4BAA4B,EAAE;IAC1E,IAAI,EAAE,gBAAgB;IACtB,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,6CAA6C,CAC9C;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,mBAAmB,GAAG,oBAAoB,CAAC;IAC/C,WAAW,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;IAClC,KAAK,EAAE,OAAO;IACd,kBAAkB,EAAE,EAAE;IACtB,IAAI,EAAE,uBAAuB;IAC7B,MAAM,EAAE;QACN,IAAI,EAAE,IAAI,CAAC,IAAI,CACb,MAAM,CAAC,IAAI,CAAC,OAAO,EACnB,oDAAoD,CACrD;KACF;IACD,SAAS,EAAE,EAAE;CACd,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,mBAAmB,EAAE,CAAC;AAE/E,MAAM,CAAC,MAAM,qCAAqC,GAAG;IACnD,cAAc;IACd,WAAW;IACX,kBAAkB;IAClB,UAAU;CACX,CAAC"}
|
|
1
|
+
{"version":3,"file":"typed-templates.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/auth-module/generated/typed-templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EACL,0BAA0B,EAC1B,wBAAwB,EACxB,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wB;IACxB,kBAAkB;IAClB,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cleanup-auth-verification.queue.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,KAWxC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { cleanupExpiredAuthVerifications } from '$servicesAuthVerification';
|
|
3
|
+
import { createQueue } from '%queueServiceImports';
|
|
4
|
+
/**
|
|
5
|
+
* Periodic queue to clean up expired auth verification tokens.
|
|
6
|
+
* Runs hourly to maintain database hygiene.
|
|
7
|
+
*/
|
|
8
|
+
export const cleanupAuthVerificationQueue = createQueue('cleanup-auth-verification', {
|
|
9
|
+
handler: async () => {
|
|
10
|
+
const result = await cleanupExpiredAuthVerifications();
|
|
11
|
+
return { deletedCount: result.deletedCount };
|
|
12
|
+
},
|
|
13
|
+
repeatable: {
|
|
14
|
+
pattern: '15 * * * *', // Every hour at minute 15
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
//# sourceMappingURL=cleanup-auth-verification.queue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cleanup-auth-verification.queue.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,+BAA+B,EAAE,MAAM,2BAA2B,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD;;;GAGG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAG,WAAW,CACrD,2BAA2B,EAC3B;IACE,OAAO,EAAE,KAAK,IAAI,EAAE;QAClB,MAAM,MAAM,GAAG,MAAM,+BAA+B,EAAE,CAAC;QACvD,OAAO,EAAE,YAAY,EAAE,MAAM,CAAC,YAAY,EAAE,CAAC;IAC/C,CAAC;IACD,UAAU,EAAE;QACV,OAAO,EAAE,YAAY,EAAE,0BAA0B;KAClD;CACF,CACF,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
import { cleanupExpiredAuthVerifications } from '$servicesAuthVerification';
|
|
4
|
+
import { createQueue } from '%queueServiceImports';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Periodic queue to clean up expired auth verification tokens.
|
|
8
|
+
* Runs hourly to maintain database hygiene.
|
|
9
|
+
*/
|
|
10
|
+
export const cleanupAuthVerificationQueue = createQueue(
|
|
11
|
+
'cleanup-auth-verification',
|
|
12
|
+
{
|
|
13
|
+
handler: async () => {
|
|
14
|
+
const result = await cleanupExpiredAuthVerifications();
|
|
15
|
+
return { deletedCount: result.deletedCount };
|
|
16
|
+
},
|
|
17
|
+
repeatable: {
|
|
18
|
+
pattern: '15 * * * *', // Every hour at minute 15
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
);
|
|
@@ -9,7 +9,7 @@ builder.mutationField('logOut', (t) => t.fieldWithInputPayload({
|
|
|
9
9
|
}),
|
|
10
10
|
},
|
|
11
11
|
resolve: async (parent, args, context) => {
|
|
12
|
-
if (context.auth.session
|
|
12
|
+
if (context.auth.session?.type === 'user') {
|
|
13
13
|
await userSessionService.clearSession(context.auth.session, context);
|
|
14
14
|
}
|
|
15
15
|
return { success: true };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-session.mutations.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACpC,CAAC,CAAC,qBAAqB,CAAC;IACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE;QACP,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;YACzB,WAAW,EAAE,oCAAoC;SAClD,CAAC;KACH;IACD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QACvC,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"user-session.mutations.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,CAAC,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACpC,CAAC,CAAC,qBAAqB,CAAC;IACtB,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE;QACP,OAAO,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;YACzB,WAAW,EAAE,oCAAoC;SAClD,CAAC;KACH;IACD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QACvC,IAAI,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,KAAK,MAAM,EAAE,CAAC;YAC1C,MAAM,kBAAkB,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACvE,CAAC;QAED,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,CAAC;CACF,CAAC,CACH,CAAC"}
|
|
@@ -12,7 +12,7 @@ builder.mutationField('logOut', (t) =>
|
|
|
12
12
|
}),
|
|
13
13
|
},
|
|
14
14
|
resolve: async (parent, args, context) => {
|
|
15
|
-
if (context.auth.session
|
|
15
|
+
if (context.auth.session?.type === 'user') {
|
|
16
16
|
await userSessionService.clearSession(context.auth.session, context);
|
|
17
17
|
}
|
|
18
18
|
|
package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js
CHANGED
|
@@ -8,7 +8,7 @@ builder.queryField('currentUserSession', (t) => t.field({
|
|
|
8
8
|
nullable: true,
|
|
9
9
|
authorize: ['public'],
|
|
10
10
|
resolve: (root, args, { auth }) => {
|
|
11
|
-
if (
|
|
11
|
+
if (auth.session?.type !== 'user') {
|
|
12
12
|
return undefined;
|
|
13
13
|
}
|
|
14
14
|
return {
|
|
@@ -24,7 +24,7 @@ builder.queryField('viewer', (t) => t.prismaField({
|
|
|
24
24
|
description: 'The currently authenticated user',
|
|
25
25
|
authorize: ['public'],
|
|
26
26
|
resolve: async (query, root, args, { auth }) => {
|
|
27
|
-
if (
|
|
27
|
+
if (auth.session?.type !== 'user') {
|
|
28
28
|
return null;
|
|
29
29
|
}
|
|
30
30
|
return prisma.user.findUnique({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-session.queries.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,CAAC,EAAE,EAAE,CAC7C,CAAC,CAAC,KAAK,CAAC;IACN,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QAChC,IAAI,
|
|
1
|
+
{"version":3,"file":"user-session.queries.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,CAAC,UAAU,CAAC,oBAAoB,EAAE,CAAC,CAAC,EAAE,EAAE,CAC7C,CAAC,CAAC,KAAK,CAAC;IACN,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,8BAA8B;IAC3C,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QAChC,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,KAAK,MAAM,EAAE,CAAC;YAClC,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,OAAO;YACL,SAAS,EAAE,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,EAAE;YAChD,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM;YAC3B,KAAK,EAAE,IAAI,CAAC,KAAK;SAClB,CAAC;IACJ,CAAC;CACF,CAAC,CACH,CAAC;AAEF,OAAO,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACjC,CAAC,CAAC,WAAW,CAAC;IACZ,IAAI,EAAE,oBAAoB;IAC1B,QAAQ,EAAE,IAAI;IACd,WAAW,EAAE,kCAAkC;IAC/C,SAAS,EAAE,CAAC,QAAQ,CAAC;IACrB,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;QAC7C,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,KAAK,MAAM,EAAE,CAAC;YAClC,OAAO,IAAI,CAAC;QACd,CAAC;QACD,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC;YAC5B,KAAK,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YAClC,GAAG,KAAK;SACT,CAAC,CAAC;IACL,CAAC;CACF,CAAC,CACH,CAAC"}
|
package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.ts
CHANGED
|
@@ -11,7 +11,7 @@ builder.queryField('currentUserSession', (t) =>
|
|
|
11
11
|
nullable: true,
|
|
12
12
|
authorize: ['public'],
|
|
13
13
|
resolve: (root, args, { auth }) => {
|
|
14
|
-
if (
|
|
14
|
+
if (auth.session?.type !== 'user') {
|
|
15
15
|
return undefined;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -31,7 +31,7 @@ builder.queryField('viewer', (t) =>
|
|
|
31
31
|
description: 'The currently authenticated user',
|
|
32
32
|
authorize: ['public'],
|
|
33
33
|
resolve: async (query, root, args, { auth }) => {
|
|
34
|
-
if (
|
|
34
|
+
if (auth.session?.type !== 'user') {
|
|
35
35
|
return null;
|
|
36
36
|
}
|
|
37
37
|
return prisma.user.findUnique({
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { AuthVerification, Prisma } from '%prismaGeneratedImports';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new auth verification using the split-token pattern.
|
|
4
|
+
*
|
|
5
|
+
* @param type - Verification type (e.g., "password-reset", "email-verify")
|
|
6
|
+
* @param userId - Optional user ID to associate with the token
|
|
7
|
+
* @param expiresInSec - Token lifetime in seconds
|
|
8
|
+
* @param metadata - Optional JSON metadata to store with the token
|
|
9
|
+
* @returns The combined token (`{selector}.{verifier}`) to send to the user
|
|
10
|
+
*/
|
|
11
|
+
export declare function createAuthVerification({ type, userId, expiresInSec, metadata, }: {
|
|
12
|
+
type: string;
|
|
13
|
+
userId?: string;
|
|
14
|
+
expiresInSec: number;
|
|
15
|
+
metadata?: Prisma.JsonValue;
|
|
16
|
+
}): Promise<{
|
|
17
|
+
token: string;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* Validates an auth verification token without consuming it.
|
|
21
|
+
* Returns the full record if valid so the caller can delete it
|
|
22
|
+
* as part of their own transaction.
|
|
23
|
+
*
|
|
24
|
+
* Security: If the selector matches but the verifier is wrong or expired,
|
|
25
|
+
* the token is deleted to prevent brute-force attempts.
|
|
26
|
+
*
|
|
27
|
+
* @throws BadRequestError if token is invalid, expired, or malformed
|
|
28
|
+
*/
|
|
29
|
+
export declare function validateAuthVerification({ type, token, }: {
|
|
30
|
+
type: string;
|
|
31
|
+
token: string;
|
|
32
|
+
}): Promise<AuthVerification | null>;
|
|
33
|
+
/**
|
|
34
|
+
* Cleanup job to delete expired auth verification tokens.
|
|
35
|
+
* Should be called periodically (e.g., via cron job or queue).
|
|
36
|
+
*/
|
|
37
|
+
export declare function cleanupExpiredAuthVerifications(): Promise<{
|
|
38
|
+
deletedCount: number;
|
|
39
|
+
}>;
|
|
40
|
+
//# sourceMappingURL=auth-verification.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-verification.service.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAiDxE;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAAC,EAC3C,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,SAAS,CAAC;CAC7B,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAiB7B;AAED;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAAC,EAC7C,IAAI,EACJ,KAAK,GACN,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAwBnC;AAED;;;GAGG;AACH,wBAAsB,+BAA+B,IAAI,OAAO,CAAC;IAC/D,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC,CAQD"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { prisma } from '%prismaImports';
|
|
3
|
+
import * as crypto from 'node:crypto';
|
|
4
|
+
/**
|
|
5
|
+
* Split-token pattern for secure verification flows.
|
|
6
|
+
*
|
|
7
|
+
* - selector: random identifier used for DB lookup (stored as `identifier`)
|
|
8
|
+
* - verifier: random secret, hashed before storage (stored as `value`)
|
|
9
|
+
* - token: `{selector}.{verifier}` — the value sent to the user
|
|
10
|
+
*/
|
|
11
|
+
function generateSplitToken() {
|
|
12
|
+
return {
|
|
13
|
+
selector: crypto.randomBytes(16).toString('base64url'),
|
|
14
|
+
verifier: crypto.randomBytes(16).toString('base64url'),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
function hashVerifier(verifier) {
|
|
18
|
+
return crypto.createHash('sha256').update(verifier).digest('hex');
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Constant-time comparison of two hex strings to prevent timing attacks.
|
|
22
|
+
*/
|
|
23
|
+
function safeCompare(a, b) {
|
|
24
|
+
if (a.length !== b.length)
|
|
25
|
+
return false;
|
|
26
|
+
return crypto.timingSafeEqual(Buffer.from(a, 'hex'), Buffer.from(b, 'hex'));
|
|
27
|
+
}
|
|
28
|
+
function encodeToken(selector, verifier) {
|
|
29
|
+
return `${selector}.${verifier}`;
|
|
30
|
+
}
|
|
31
|
+
function decodeToken(token) {
|
|
32
|
+
const dotIndex = token.indexOf('.');
|
|
33
|
+
if (dotIndex === -1) {
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
selector: token.slice(0, dotIndex),
|
|
38
|
+
verifier: token.slice(dotIndex + 1),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Creates a new auth verification using the split-token pattern.
|
|
43
|
+
*
|
|
44
|
+
* @param type - Verification type (e.g., "password-reset", "email-verify")
|
|
45
|
+
* @param userId - Optional user ID to associate with the token
|
|
46
|
+
* @param expiresInSec - Token lifetime in seconds
|
|
47
|
+
* @param metadata - Optional JSON metadata to store with the token
|
|
48
|
+
* @returns The combined token (`{selector}.{verifier}`) to send to the user
|
|
49
|
+
*/
|
|
50
|
+
export async function createAuthVerification({ type, userId, expiresInSec, metadata, }) {
|
|
51
|
+
const { selector, verifier } = generateSplitToken();
|
|
52
|
+
const value = hashVerifier(verifier);
|
|
53
|
+
const expiresAt = new Date(Date.now() + expiresInSec * 1000);
|
|
54
|
+
await prisma.authVerification.create({
|
|
55
|
+
data: {
|
|
56
|
+
type,
|
|
57
|
+
identifier: selector,
|
|
58
|
+
value,
|
|
59
|
+
userId,
|
|
60
|
+
metadata: metadata ?? undefined,
|
|
61
|
+
expiresAt,
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
return { token: encodeToken(selector, verifier) };
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Validates an auth verification token without consuming it.
|
|
68
|
+
* Returns the full record if valid so the caller can delete it
|
|
69
|
+
* as part of their own transaction.
|
|
70
|
+
*
|
|
71
|
+
* Security: If the selector matches but the verifier is wrong or expired,
|
|
72
|
+
* the token is deleted to prevent brute-force attempts.
|
|
73
|
+
*
|
|
74
|
+
* @throws BadRequestError if token is invalid, expired, or malformed
|
|
75
|
+
*/
|
|
76
|
+
export async function validateAuthVerification({ type, token, }) {
|
|
77
|
+
const decoded = decodeToken(token);
|
|
78
|
+
if (!decoded) {
|
|
79
|
+
return null;
|
|
80
|
+
}
|
|
81
|
+
const record = await prisma.authVerification.findUnique({
|
|
82
|
+
where: { type_identifier: { type, identifier: decoded.selector } },
|
|
83
|
+
});
|
|
84
|
+
if (!record) {
|
|
85
|
+
return null;
|
|
86
|
+
}
|
|
87
|
+
if (!safeCompare(record.value, hashVerifier(decoded.verifier)) ||
|
|
88
|
+
record.expiresAt < new Date()) {
|
|
89
|
+
await prisma.authVerification.delete({ where: { id: record.id } });
|
|
90
|
+
return null;
|
|
91
|
+
}
|
|
92
|
+
return record;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Cleanup job to delete expired auth verification tokens.
|
|
96
|
+
* Should be called periodically (e.g., via cron job or queue).
|
|
97
|
+
*/
|
|
98
|
+
export async function cleanupExpiredAuthVerifications() {
|
|
99
|
+
const result = await prisma.authVerification.deleteMany({
|
|
100
|
+
where: {
|
|
101
|
+
expiresAt: { lt: new Date() },
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
return { deletedCount: result.count };
|
|
105
|
+
}
|
|
106
|
+
//# sourceMappingURL=auth-verification.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth-verification.service.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/auth-module/templates/module/services/auth-verification.service.ts"],"names":[],"mappings":"AAAA,cAAc;AAId,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC;;;;;;GAMG;AAEH,SAAS,kBAAkB;IACzB,OAAO;QACL,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC;QACtD,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC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