@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
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
import { getApolloErrorCode } from '%apolloErrorImports';
|
|
4
|
+
import { graphql } from '%graphqlImports';
|
|
5
|
+
import {
|
|
6
|
+
Button,
|
|
7
|
+
Card,
|
|
8
|
+
CardContent,
|
|
9
|
+
CardDescription,
|
|
10
|
+
CardHeader,
|
|
11
|
+
CardTitle,
|
|
12
|
+
} from '%reactComponentsImports';
|
|
13
|
+
import { logAndFormatError, logError } from '%reactErrorImports';
|
|
14
|
+
import { useMutation } from '@apollo/client/react';
|
|
15
|
+
import { createFileRoute, redirect, useNavigate } from '@tanstack/react-router';
|
|
16
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
17
|
+
import { toast } from 'sonner';
|
|
18
|
+
import { z } from 'zod';
|
|
19
|
+
|
|
20
|
+
export const Route = createFileRoute('/auth_/verify-email')({
|
|
21
|
+
validateSearch: z.object({
|
|
22
|
+
token: z.string().optional(),
|
|
23
|
+
}),
|
|
24
|
+
component: VerifyEmailPage,
|
|
25
|
+
beforeLoad: ({ search: { token } }) => {
|
|
26
|
+
if (!token) {
|
|
27
|
+
throw redirect({ to: '/' });
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
const verifyEmailMutation = graphql(`
|
|
33
|
+
mutation VerifyEmail($input: VerifyEmailInput!) {
|
|
34
|
+
verifyEmail(input: $input) {
|
|
35
|
+
success
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
`);
|
|
39
|
+
|
|
40
|
+
const requestEmailVerificationMutation = graphql(`
|
|
41
|
+
mutation RequestEmailVerification {
|
|
42
|
+
requestEmailVerification {
|
|
43
|
+
success
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
`);
|
|
47
|
+
|
|
48
|
+
type VerifyStatus = 'idle' | 'verifying' | 'success' | 'error';
|
|
49
|
+
|
|
50
|
+
function VerifyEmailPage(): React.JSX.Element {
|
|
51
|
+
const { token } = Route.useSearch();
|
|
52
|
+
const { userId } = Route.useRouteContext();
|
|
53
|
+
const navigate = useNavigate();
|
|
54
|
+
const [status, setStatus] = useState<VerifyStatus>(
|
|
55
|
+
userId ? 'verifying' : 'idle',
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
const [verifyEmail] = useMutation(verifyEmailMutation);
|
|
59
|
+
const [requestVerification, { loading: resending }] = useMutation(
|
|
60
|
+
requestEmailVerificationMutation,
|
|
61
|
+
);
|
|
62
|
+
|
|
63
|
+
const doVerify = useCallback((): void => {
|
|
64
|
+
if (!token) return;
|
|
65
|
+
|
|
66
|
+
setStatus('verifying');
|
|
67
|
+
verifyEmail({
|
|
68
|
+
variables: { input: { token } },
|
|
69
|
+
})
|
|
70
|
+
.then(() => {
|
|
71
|
+
setStatus('success');
|
|
72
|
+
})
|
|
73
|
+
.catch((err: unknown) => {
|
|
74
|
+
const errorCode = getApolloErrorCode(err, [
|
|
75
|
+
'invalid-token',
|
|
76
|
+
'token-expired',
|
|
77
|
+
] as const);
|
|
78
|
+
switch (errorCode) {
|
|
79
|
+
case 'invalid-token':
|
|
80
|
+
case 'token-expired': {
|
|
81
|
+
setStatus('error');
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
default: {
|
|
85
|
+
toast.error(
|
|
86
|
+
logAndFormatError(err, 'Sorry, we could not verify your email.'),
|
|
87
|
+
);
|
|
88
|
+
setStatus('error');
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
}, [token, verifyEmail]);
|
|
93
|
+
|
|
94
|
+
// If logged in, auto-verify on mount
|
|
95
|
+
useEffect(() => {
|
|
96
|
+
if (userId && token) {
|
|
97
|
+
doVerify();
|
|
98
|
+
}
|
|
99
|
+
}, [userId, token, doVerify]);
|
|
100
|
+
|
|
101
|
+
const handleResend = (): void => {
|
|
102
|
+
requestVerification()
|
|
103
|
+
.then(() => {
|
|
104
|
+
toast.success('Verification email sent! Check your inbox.');
|
|
105
|
+
})
|
|
106
|
+
.catch((err: unknown) => {
|
|
107
|
+
toast.error(
|
|
108
|
+
logAndFormatError(err, 'Could not resend verification email.'),
|
|
109
|
+
);
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
// Verifying state
|
|
114
|
+
if (status === 'verifying') {
|
|
115
|
+
return (
|
|
116
|
+
<Card>
|
|
117
|
+
<CardHeader>
|
|
118
|
+
<CardTitle>Verifying...</CardTitle>
|
|
119
|
+
<CardDescription>
|
|
120
|
+
Please wait while we verify your email address.
|
|
121
|
+
</CardDescription>
|
|
122
|
+
</CardHeader>
|
|
123
|
+
</Card>
|
|
124
|
+
);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
// Success state
|
|
128
|
+
if (status === 'success') {
|
|
129
|
+
return (
|
|
130
|
+
<Card>
|
|
131
|
+
<CardHeader>
|
|
132
|
+
<CardTitle>Email Verified!</CardTitle>
|
|
133
|
+
<CardDescription>
|
|
134
|
+
Your email address has been successfully verified.
|
|
135
|
+
</CardDescription>
|
|
136
|
+
</CardHeader>
|
|
137
|
+
<CardContent>
|
|
138
|
+
<Button
|
|
139
|
+
variant="secondary"
|
|
140
|
+
className="w-full"
|
|
141
|
+
onClick={() => {
|
|
142
|
+
navigate({ to: '/' }).catch(logError);
|
|
143
|
+
}}
|
|
144
|
+
>
|
|
145
|
+
Continue
|
|
146
|
+
</Button>
|
|
147
|
+
</CardContent>
|
|
148
|
+
</Card>
|
|
149
|
+
);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Error state
|
|
153
|
+
if (status === 'error') {
|
|
154
|
+
return (
|
|
155
|
+
<Card>
|
|
156
|
+
<CardHeader>
|
|
157
|
+
<CardTitle>Invalid or Expired Link</CardTitle>
|
|
158
|
+
<CardDescription>
|
|
159
|
+
This verification link is invalid or has expired.
|
|
160
|
+
</CardDescription>
|
|
161
|
+
</CardHeader>
|
|
162
|
+
<CardContent>
|
|
163
|
+
<div className="flex flex-col gap-3">
|
|
164
|
+
{userId ? (
|
|
165
|
+
<Button
|
|
166
|
+
variant="secondary"
|
|
167
|
+
className="w-full"
|
|
168
|
+
disabled={resending}
|
|
169
|
+
onClick={handleResend}
|
|
170
|
+
>
|
|
171
|
+
Resend Verification Email
|
|
172
|
+
</Button>
|
|
173
|
+
) : (
|
|
174
|
+
<Button
|
|
175
|
+
variant="secondary"
|
|
176
|
+
className="w-full"
|
|
177
|
+
onClick={() => {
|
|
178
|
+
navigate({ to: '/auth/login' }).catch(logError);
|
|
179
|
+
}}
|
|
180
|
+
>
|
|
181
|
+
Log In to Resend
|
|
182
|
+
</Button>
|
|
183
|
+
)}
|
|
184
|
+
</div>
|
|
185
|
+
</CardContent>
|
|
186
|
+
</Card>
|
|
187
|
+
);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Idle state (not logged in) — show button to verify
|
|
191
|
+
return (
|
|
192
|
+
<Card>
|
|
193
|
+
<CardHeader>
|
|
194
|
+
<CardTitle>Verify your email</CardTitle>
|
|
195
|
+
<CardDescription>
|
|
196
|
+
Click the button below to verify your email address.
|
|
197
|
+
</CardDescription>
|
|
198
|
+
</CardHeader>
|
|
199
|
+
<CardContent>
|
|
200
|
+
<Button className="w-full" onClick={doVerify}>
|
|
201
|
+
Verify Email
|
|
202
|
+
</Button>
|
|
203
|
+
</CardContent>
|
|
204
|
+
</Card>
|
|
205
|
+
);
|
|
206
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/core/generators/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/core/generators/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/local-auth/core/generators/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/local-auth/core/generators/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
|
|
@@ -23,9 +23,15 @@ export declare const LOCAL_AUTH_CORE_SEED_INITIAL_USER_GENERATED: {
|
|
|
23
23
|
}, {
|
|
24
24
|
authEmailPasswordImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
25
25
|
authenticateUserWithEmailAndPassword: {};
|
|
26
|
+
cleanupExpiredPasswordResetTokens: {};
|
|
27
|
+
completePasswordReset: {};
|
|
26
28
|
createUserWithEmailAndPassword: {};
|
|
29
|
+
PASSWORD_MAX_LENGTH: {};
|
|
27
30
|
PASSWORD_MIN_LENGTH: {};
|
|
31
|
+
PASSWORD_RESET_TOKEN_EXPIRY_SEC: {};
|
|
28
32
|
registerUserWithEmailAndPassword: {};
|
|
33
|
+
requestPasswordReset: {};
|
|
34
|
+
validatePasswordResetToken: {};
|
|
29
35
|
}>>;
|
|
30
36
|
authRolesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
31
37
|
AUTH_ROLE_CONFIG: {};
|
|
@@ -57,9 +63,15 @@ export declare const LOCAL_AUTH_CORE_SEED_INITIAL_USER_GENERATED: {
|
|
|
57
63
|
}, {
|
|
58
64
|
authEmailPasswordImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
59
65
|
authenticateUserWithEmailAndPassword: {};
|
|
66
|
+
cleanupExpiredPasswordResetTokens: {};
|
|
67
|
+
completePasswordReset: {};
|
|
60
68
|
createUserWithEmailAndPassword: {};
|
|
69
|
+
PASSWORD_MAX_LENGTH: {};
|
|
61
70
|
PASSWORD_MIN_LENGTH: {};
|
|
71
|
+
PASSWORD_RESET_TOKEN_EXPIRY_SEC: {};
|
|
62
72
|
registerUserWithEmailAndPassword: {};
|
|
73
|
+
requestPasswordReset: {};
|
|
74
|
+
validatePasswordResetToken: {};
|
|
63
75
|
}>>;
|
|
64
76
|
authRolesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
65
77
|
AUTH_ROLE_CONFIG: {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/seed-initial-user/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2CAA2C
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/seed-initial-user/generated/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvD,CAAC"}
|
|
@@ -13,9 +13,15 @@ export declare const LOCAL_AUTH_CORE_SEED_INITIAL_USER_RENDERERS: {
|
|
|
13
13
|
}, {
|
|
14
14
|
authEmailPasswordImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
15
15
|
authenticateUserWithEmailAndPassword: {};
|
|
16
|
+
cleanupExpiredPasswordResetTokens: {};
|
|
17
|
+
completePasswordReset: {};
|
|
16
18
|
createUserWithEmailAndPassword: {};
|
|
19
|
+
PASSWORD_MAX_LENGTH: {};
|
|
17
20
|
PASSWORD_MIN_LENGTH: {};
|
|
21
|
+
PASSWORD_RESET_TOKEN_EXPIRY_SEC: {};
|
|
18
22
|
registerUserWithEmailAndPassword: {};
|
|
23
|
+
requestPasswordReset: {};
|
|
24
|
+
validatePasswordResetToken: {};
|
|
19
25
|
}>>;
|
|
20
26
|
authRolesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
21
27
|
AUTH_ROLE_CONFIG: {};
|
package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/seed-initial-user/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAazD,OAAO,EAAE,2CAA2C,EAAE,MAAM,sBAAsB,CAAC;AAEnF,MAAM,WAAW,qCAAqC;IACpD,eAAe,EAAE;QACf,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,2CAA2C,CAAC,eAAe,CACnE,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAoDD,eAAO,MAAM,2CAA2C
|
|
1
|
+
{"version":3,"file":"template-renderers.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/seed-initial-user/generated/template-renderers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,gCAAgC,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAazD,OAAO,EAAE,2CAA2C,EAAE,MAAM,sBAAsB,CAAC;AAEnF,MAAM,WAAW,qCAAqC;IACpD,eAAe,EAAE;QACf,MAAM,EAAE,CACN,OAAO,EAAE,IAAI,CACX,+BAA+B,CAC7B,OAAO,2CAA2C,CAAC,eAAe,CACnE,EACD,aAAa,GAAG,oBAAoB,GAAG,UAAU,GAAG,gBAAgB,CACrE,KACE,aAAa,CAAC;KACpB,CAAC;CACH;AAoDD,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvD,CAAC"}
|
|
@@ -4,9 +4,15 @@ export declare const LOCAL_AUTH_CORE_SEED_INITIAL_USER_TEMPLATES: {
|
|
|
4
4
|
}, {
|
|
5
5
|
authEmailPasswordImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
6
6
|
authenticateUserWithEmailAndPassword: {};
|
|
7
|
+
cleanupExpiredPasswordResetTokens: {};
|
|
8
|
+
completePasswordReset: {};
|
|
7
9
|
createUserWithEmailAndPassword: {};
|
|
10
|
+
PASSWORD_MAX_LENGTH: {};
|
|
8
11
|
PASSWORD_MIN_LENGTH: {};
|
|
12
|
+
PASSWORD_RESET_TOKEN_EXPIRY_SEC: {};
|
|
9
13
|
registerUserWithEmailAndPassword: {};
|
|
14
|
+
requestPasswordReset: {};
|
|
15
|
+
validatePasswordResetToken: {};
|
|
10
16
|
}>>;
|
|
11
17
|
authRolesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
12
18
|
AUTH_ROLE_CONFIG: {};
|
package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/seed-initial-user/generated/typed-templates.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,2CAA2C
|
|
1
|
+
{"version":3,"file":"typed-templates.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/seed-initial-user/generated/typed-templates.ts"],"names":[],"mappings":"AA6BA,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAsB,CAAC"}
|
|
@@ -14,9 +14,15 @@ export declare const seedInitialUserGenerator: import("@baseplate-dev/sync").Gen
|
|
|
14
14
|
}, {
|
|
15
15
|
authEmailPasswordImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
16
16
|
authenticateUserWithEmailAndPassword: {};
|
|
17
|
+
cleanupExpiredPasswordResetTokens: {};
|
|
18
|
+
completePasswordReset: {};
|
|
17
19
|
createUserWithEmailAndPassword: {};
|
|
20
|
+
PASSWORD_MAX_LENGTH: {};
|
|
18
21
|
PASSWORD_MIN_LENGTH: {};
|
|
22
|
+
PASSWORD_RESET_TOKEN_EXPIRY_SEC: {};
|
|
19
23
|
registerUserWithEmailAndPassword: {};
|
|
24
|
+
requestPasswordReset: {};
|
|
25
|
+
validatePasswordResetToken: {};
|
|
20
26
|
}>>;
|
|
21
27
|
authRolesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
22
28
|
AUTH_ROLE_CONFIG: {};
|
package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed-initial-user.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.ts"],"names":[],"mappings":"AAgBA;;GAEG;AACH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"seed-initial-user.generator.d.ts","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.ts"],"names":[],"mappings":"AAgBA;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDnC,CAAC"}
|
|
@@ -45,7 +45,7 @@ export const seedInitialUserGenerator = createGenerator({
|
|
|
45
45
|
build: async (builder) => {
|
|
46
46
|
await builder.apply(renderers.seedInitialUser.render({
|
|
47
47
|
variables: {
|
|
48
|
-
TPL_INITIAL_USER_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted(initialUserRoles.map((role) => quot(role)).
|
|
48
|
+
TPL_INITIAL_USER_ROLES: TsCodeUtils.mergeFragmentsAsArrayPresorted(initialUserRoles.map((role) => quot(role)).toSorted()),
|
|
49
49
|
},
|
|
50
50
|
}));
|
|
51
51
|
},
|
package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"seed-initial-user.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.ts"],"names":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Ae,CAAC;oBACzB,IAAI,EAAE,oBAAoB;oBAC1B,YAAY,EAAE,mBAAmB;iBAClC,CAAC,CAAC;gBACH,UAAU,CAAC,eAAe,CAAC;oBACzB,IAAI,EAAE,uBAAuB;oBAC7B,YAAY,EAAE,UAAU;iBACzB,CAAC,CAAC;YACL,CAAC;SACF,CAAC;QACF,IAAI,EAAE,mBAAmB,CAAC;YACxB,YAAY,EAAE;gBACZ,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,QAAQ;aAClD;YACD,GAAG,CAAC,EAAE,SAAS,EAAE;gBACf,OAAO;oBACL,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;wBACvB,MAAM,OAAO,CAAC,KAAK,CACjB,SAAS,CAAC,eAAe,CAAC,MAAM,CAAC;4BAC/B,SAAS,EAAE;gCACT,sBAAsB,EACpB,WAAW,CAAC,8BAA8B,CACxC,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"seed-initial-user.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,eAAe,EACf,qBAAqB,GACtB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,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,2CAA2C,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAE1G,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,gBAAgB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC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AAM,CAAC;4BAC/B,SAAS,EAAE;gCACT,sBAAsB,EACpB,WAAW,CAAC,8BAA8B,CACxC,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CACtD;6BACJ;yBACF,CAAC,CACH,CAAC;oBACJ,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/local-auth/core/node.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/local-auth/core/node.ts"],"names":[],"mappings":";;;AA6BA,wBA4EG"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { appModuleGenerator, passwordHasherServiceGenerator, } from '@baseplate-dev/fastify-generators';
|
|
2
|
+
import { emailTemplateSpec } from '@baseplate-dev/plugin-email';
|
|
2
3
|
import { appCompilerSpec, backendAppEntryType, createPluginModule, PluginUtils, webAppEntryType, } from '@baseplate-dev/project-builder-lib';
|
|
3
4
|
import { getAuthPluginDefinition } from '#src/auth/index.js';
|
|
4
5
|
import { authApolloGenerator } from './generators/auth-apollo/auth-apollo.generator.js';
|
|
5
6
|
import { authEmailPasswordGenerator } from './generators/auth-email-password/auth-email-password.generator.js';
|
|
7
|
+
import { authEmailTemplatesGenerator } from './generators/auth-email-templates/auth-email-templates.generator.js';
|
|
6
8
|
import { authHooksGenerator } from './generators/auth-hooks/auth-hooks.generator.js';
|
|
7
9
|
import { authRoutesGenerator } from './generators/auth-routes/auth-routes.generator.js';
|
|
8
10
|
import { authModuleGenerator, reactAuthGenerator, seedInitialUserGenerator, } from './generators/index.js';
|
|
@@ -11,8 +13,11 @@ export default createPluginModule({
|
|
|
11
13
|
name: 'node',
|
|
12
14
|
dependencies: {
|
|
13
15
|
appCompiler: appCompilerSpec,
|
|
16
|
+
emailTemplate: emailTemplateSpec,
|
|
14
17
|
},
|
|
15
|
-
initialize: ({ appCompiler }, { pluginKey }) => {
|
|
18
|
+
initialize: ({ appCompiler, emailTemplate }, { pluginKey }) => {
|
|
19
|
+
// Register auth email templates with the transactional lib
|
|
20
|
+
emailTemplate.generators.push(authEmailTemplatesGenerator({}));
|
|
16
21
|
// register backend compiler
|
|
17
22
|
appCompiler.compilers.push({
|
|
18
23
|
pluginKey,
|
|
@@ -20,6 +25,10 @@ export default createPluginModule({
|
|
|
20
25
|
compile: ({ projectDefinition, definitionContainer, appCompiler }) => {
|
|
21
26
|
const localAuthDefinition = PluginUtils.configByKeyOrThrow(projectDefinition, pluginKey);
|
|
22
27
|
const authDefinition = getAuthPluginDefinition(projectDefinition);
|
|
28
|
+
// Get first web app's port for auth domain that supports auth
|
|
29
|
+
const firstWebApp = projectDefinition.apps.find((app) => app.type === 'web' && app.includeAuth);
|
|
30
|
+
const devWebDomainPort = firstWebApp?.devPort ??
|
|
31
|
+
projectDefinition.settings.general.portOffset + 30;
|
|
23
32
|
appCompiler.addChildrenToFeature(authDefinition.authFeatureRef, {
|
|
24
33
|
seedInitialUser: seedInitialUserGenerator({
|
|
25
34
|
initialUserRoles: localAuthDefinition.initialUserRoles?.map((role) => definitionContainer.nameFromId(role)) ?? [],
|
|
@@ -33,6 +42,7 @@ export default createPluginModule({
|
|
|
33
42
|
children: {
|
|
34
43
|
module: authEmailPasswordGenerator({
|
|
35
44
|
adminRoles: localAuthDefinition.userAdminRoles?.map((role) => definitionContainer.nameFromId(role)) ?? [],
|
|
45
|
+
devWebDomainPort,
|
|
36
46
|
}),
|
|
37
47
|
hasher: passwordHasherServiceGenerator({}),
|
|
38
48
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/local-auth/core/node.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,8BAA8B,GAC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],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,GACf,EAAE,oBAAoB,GAAG,MAAM,CAC9B,MAAM,OAAO,iBAAiB,EAC9B,qBAAqB,CACtB,
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../../src/local-auth/core/schema/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oCAAoC,CAAC;AAEhF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAEvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,wBAAgB,gBAAgB,CAAC,EAC/B,cAAc,GACf,EAAE,oBAAoB,GAAG,MAAM,CAC9B,MAAM,OAAO,iBAAiB,EAC9B,qBAAqB,CACtB,CAqQA"}
|
|
@@ -199,6 +199,66 @@ export function createAuthModels({ authFeatureRef, }) {
|
|
|
199
199
|
],
|
|
200
200
|
},
|
|
201
201
|
},
|
|
202
|
+
authVerification: {
|
|
203
|
+
name: LOCAL_AUTH_MODELS.authVerification,
|
|
204
|
+
featureRef: authFeatureRef,
|
|
205
|
+
model: {
|
|
206
|
+
fields: [
|
|
207
|
+
{
|
|
208
|
+
name: 'id',
|
|
209
|
+
type: 'uuid',
|
|
210
|
+
options: { genUuid: true },
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: 'type',
|
|
214
|
+
type: 'string',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
name: 'identifier',
|
|
218
|
+
type: 'string',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: 'value',
|
|
222
|
+
type: 'string',
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: 'userId',
|
|
226
|
+
type: 'uuid',
|
|
227
|
+
isOptional: true,
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: 'metadata',
|
|
231
|
+
type: 'json',
|
|
232
|
+
isOptional: true,
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
name: 'expiresAt',
|
|
236
|
+
type: 'dateTime',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
name: 'createdAt',
|
|
240
|
+
type: 'dateTime',
|
|
241
|
+
options: { defaultToNow: true },
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
primaryKeyFieldRefs: ['id'],
|
|
245
|
+
uniqueConstraints: [
|
|
246
|
+
{
|
|
247
|
+
fields: [{ fieldRef: 'type' }, { fieldRef: 'identifier' }],
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
relations: [
|
|
251
|
+
{
|
|
252
|
+
name: 'user',
|
|
253
|
+
references: [{ localRef: 'userId', foreignRef: 'id' }],
|
|
254
|
+
modelRef: LOCAL_AUTH_MODELS.user,
|
|
255
|
+
foreignRelationName: 'authVerifications',
|
|
256
|
+
onDelete: 'Cascade',
|
|
257
|
+
onUpdate: 'Restrict',
|
|
258
|
+
},
|
|
259
|
+
],
|
|
260
|
+
},
|
|
261
|
+
},
|
|
202
262
|
};
|
|
203
263
|
}
|
|
204
264
|
//# sourceMappingURL=models.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/local-auth/core/schema/models.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,MAAM,UAAU,gBAAgB,CAAC,EAC/B,cAAc,GACO;IAIrB,OAAO;QACL,IAAI,EAAE;YACJ,IAAI,EAAE,iBAAiB,CAAC,IAAI;YAC5B,UAAU,EAAE,cAAc;YAC1B,KAAK,EAAE;gBACL,MAAM,E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S,EAAE,IAAI,EAAE;qBACjD;iBACF;gBACD,mBAAmB,EAAE,CAAC,IAAI,CAAC;gBAC3B,iBAAiB,EAAE;oBACjB;wBACE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;qBAChC;iBACF;gBACD,SAAS,EAAE;oBACT;wBACE,IAAI,EAAE,MAAM;wBACZ,UAAU,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;wBACtD,QAAQ,EAAE,iBAAiB,CAAC,IAAI;wBAChC,mBAAmB,EAAE,UAAU;wBAC/B,QAAQ,EAAE,SAAS;wBACnB,QAAQ,EAAE,UAAU;qBACrB;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../../src/local-auth/core/schema/models.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E,MAAM,UAAU,gBAAgB,CAAC,EAC/B,cAAc,GACO;IAIrB,OAAO;QACL,IAAI,EAAE;YACJ,IAAI,EAAE,iBAAiB,CAAC,IAAI;YAC5B,UAAU,EAAE,cAAc;YAC1B,KAAK,EAAE;gBACL,MAAM,EAAE;oBACN;wBACE,IAAI,EAAE,IAAI;wBACV,IAAI,EAAE,MAAM;wBACZ,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;qBAC3B;oBACD;wBACE,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,QAAQ;wBACd,UAAU,EAAE,IAAI;qBACjB;oBACD;wBACE,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,QAAQ;qBACf;oBACD;wBACE,IAAI,EAAE,eAAe;wBACrB,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;qBAC9B;oBACD;wBACE,IAAI,EAAE,WAAW;wBACjB,IAAI,EAAE,UAAU;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AAE,UAAU;qBACrB;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { definitionSchema } from '@baseplate-dev/project-builder-lib';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
export const createPlaceholderAuthPluginDefinitionSchema = definitionSchema((
|
|
3
|
+
export const createPlaceholderAuthPluginDefinitionSchema = definitionSchema(() => z.object({}));
|
|
4
4
|
//# sourceMappingURL=plugin-definition.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-definition.js","sourceRoot":"","sources":["../../../../src/placeholder-auth/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,2CAA2C,GAAG,gBAAgB,CACzE,
|
|
1
|
+
{"version":3,"file":"plugin-definition.js","sourceRoot":"","sources":["../../../../src/placeholder-auth/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,2CAA2C,GAAG,gBAAgB,CACzE,GAAG,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CACnB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-
|
|
2
|
-
import { c as createAuth0PluginDefinitionSchema, A as AUTH0_MODELS } from './plugin-definition-
|
|
1
|
+
import { importShared } from './__federation_fn_import-pxYUpmb_.js';
|
|
2
|
+
import { c as createAuth0PluginDefinitionSchema, A as AUTH0_MODELS } from './plugin-definition-BG6tu7Hh.js';
|
|
3
3
|
|
|
4
4
|
const AUTH0_PLUGIN_CONFIG_MIGRATIONS = [
|
|
5
5
|
{
|
|
@@ -37,4 +37,4 @@ const common = createPluginModule({
|
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
export { common as default };
|
|
40
|
-
//# sourceMappingURL=__federation_expose_auth0CoreCommon-
|
|
40
|
+
//# sourceMappingURL=__federation_expose_auth0CoreCommon-DKJVe6Rd.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__federation_expose_auth0CoreCommon-
|
|
1
|
+
{"version":3,"file":"__federation_expose_auth0CoreCommon-DKJVe6Rd.js","sources":["../../../src/auth0/core/schema/migrations.ts","../../../src/auth0/core/common.ts"],"sourcesContent":["import type { PluginConfigMigration } from '@baseplate-dev/project-builder-lib';\n\nexport const AUTH0_PLUGIN_CONFIG_MIGRATIONS: PluginConfigMigration[] = [\n {\n name: 'move-models',\n version: 1,\n migrate: (config) => {\n const typedConfig = config as { userAccountModelRef: string };\n return {\n updatedConfig: {\n ...typedConfig,\n userAccountModelRef: undefined,\n modelRefs: {\n user: typedConfig.userAccountModelRef,\n },\n },\n };\n },\n },\n];\n","import {\n authModelsSpec,\n createPluginModule,\n pluginConfigSpec,\n} from '@baseplate-dev/project-builder-lib';\n\nimport { AUTH0_MODELS } from '../constants/model-names.js';\nimport { AUTH0_PLUGIN_CONFIG_MIGRATIONS } from './schema/migrations.js';\nimport { createAuth0PluginDefinitionSchema } from './schema/plugin-definition.js';\n\n// necessary for Typescript to infer the return type of the initialize function\nexport type { PluginModule } from '@baseplate-dev/project-builder-lib';\n\nexport default createPluginModule({\n name: 'common',\n dependencies: {\n pluginConfig: pluginConfigSpec,\n authModels: authModelsSpec,\n },\n initialize: ({ pluginConfig, authModels }, { pluginKey }) => {\n pluginConfig.schemas.set(pluginKey, createAuth0PluginDefinitionSchema);\n pluginConfig.migrations.set(pluginKey, AUTH0_PLUGIN_CONFIG_MIGRATIONS);\n\n authModels.getAuthModels.set(() => ({\n user: AUTH0_MODELS.user,\n }));\n },\n});\n"],"names":[],"mappings":";;;AAEO,MAAM,8BAAA,GAA0D;AAAA,EACrE;AAAA,IACE,IAAA,EAAM,aAAA;AAAA,IACN,OAAA,EAAS,CAAA;AAAA,IACT,OAAA,EAAS,CAAC,MAAA,KAAW;AACnB,MAAA,MAAM,WAAA,GAAc,MAAA;AACpB,MAAA,OAAO;AAAA,QACL,aAAA,EAAe;AAAA,UACb,GAAG,WAAA;AAAA,UACH,mBAAA,EAAqB,MAAA;AAAA,UACrB,SAAA,EAAW;AAAA,YACT,MAAM,WAAA,CAAY;AAAA;AACpB;AACF,OACF;AAAA,IACF;AAAA;AAEJ,CAAA;;ACnBA,MAAA,CAAA,cAAA,CAAA,kBAAA,CAAA,gBAAA,CAAA,GAAA,MAAA,YAAA,CAAA,oCAAA,CAAA;AAaA,eAAe,kBAAA,CAAmB;AAAA,EAChC,IAAA,EAAM,QAAA;AAAA,EACN,YAAA,EAAc;AAAA,IACZ,YAAA,EAAc,gBAAA;AAAA,IACd,UAAA,EAAY;AAAA,GACd;AAAA,EACA,UAAA,EAAY,CAAC,EAAE,YAAA,EAAc,YAAW,EAAG,EAAE,WAAU,KAAM;AAC3D,IAAA,YAAA,CAAa,OAAA,CAAQ,GAAA,CAAI,SAAA,EAAW,iCAAiC,CAAA;AACrE,IAAA,YAAA,CAAa,UAAA,CAAW,GAAA,CAAI,SAAA,EAAW,8BAA8B,CAAA;AAErE,IAAA,UAAA,CAAW,aAAA,CAAc,IAAI,OAAO;AAAA,MAClC,MAAM,YAAA,CAAa;AAAA,KACrB,CAAE,CAAA;AAAA,EACJ;AACF,CAAC,CAAA;;;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-
|
|
1
|
+
import { importShared } from './__federation_fn_import-pxYUpmb_.js';
|
|
2
2
|
import { j as jsxRuntimeExports } from './jsx-runtime-XI9uIe3W.js';
|
|
3
|
-
import { a, A as AuthConfigTabs } from './styles-
|
|
4
|
-
import { g as getAuthPluginDefinition } from './get-auth-plugin-definition-
|
|
5
|
-
import { A as AUTH0_MODELS, c as createAuth0PluginDefinitionSchema } from './plugin-definition-
|
|
3
|
+
import { a, A as AuthConfigTabs } from './styles-BbHyE-2h.js';
|
|
4
|
+
import { g as getAuthPluginDefinition } from './get-auth-plugin-definition-DPsrvQbo.js';
|
|
5
|
+
import { A as AUTH0_MODELS, c as createAuth0PluginDefinitionSchema } from './plugin-definition-BG6tu7Hh.js';
|
|
6
6
|
|
|
7
7
|
function createAuth0Models({
|
|
8
8
|
authFeatureRef
|
|
@@ -155,4 +155,4 @@ const web = createPluginModule({
|
|
|
155
155
|
});
|
|
156
156
|
|
|
157
157
|
export { web as default };
|
|
158
|
-
//# sourceMappingURL=__federation_expose_auth0CoreWeb-
|
|
158
|
+
//# sourceMappingURL=__federation_expose_auth0CoreWeb-CfhSWZsK.js.map
|