@baseplate-dev/plugin-auth 0.6.18 → 0.6.19
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 +34 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +62 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +62 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +31 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +31 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +62 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +62 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +31 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +62 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +31 -0
- package/dist/better-auth/core/node.js +7 -8
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +20 -3
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +5 -24
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +40 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +19 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +6 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +20 -1
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +4 -1
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +16 -8
- package/dist/better-auth/generators/react/better-auth-hooks/better-auth-hooks.generator.d.ts +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/index.d.ts +5 -4
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/template-paths.js +1 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.d.ts +6 -6
- package/dist/better-auth/generators/react/better-auth-hooks/generated/typed-templates.js +13 -13
- package/dist/better-auth/generators/react/better-auth-hooks/templates/src/hooks/{use-required-user-id.ts → use-user-id-or-throw.ts} +1 -1
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +31 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +186 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +31 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +310 -0
- package/dist/better-auth/generators/react/better-auth-pages/templates/routes/forgot-password.tsx +1 -4
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +65 -2
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +32 -1
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.d.ts +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/ts-import-providers.js +1 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +32 -1
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +32 -1
- package/dist/better-auth/generators/react/react-better-auth/templates/src/app/auth-loaded-gate.tsx +12 -3
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/admin-crud-invite-user-action.generator.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/index.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/template-renderers.d.ts +31 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/generated/typed-templates.d.ts +31 -0
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.js +1 -2
- package/dist/local-auth/admin/generators/admin-crud-invite-user-action/templates/routes/-components/invite-user-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +31 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +31 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.js +1 -2
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/templates/routes/-components/role-manager-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +31 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +62 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.js +1 -2
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/templates/routes/-components/password-reset-dialog.tsx +1 -1
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +31 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +10 -7
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js +8 -11
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +40 -13
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +6 -5
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts +1 -3
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js +1 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +40 -16
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +11 -8
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +5 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.js +17 -13
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/invite.service.ts +25 -13
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +5 -3
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts +272 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts +547 -4
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js +1 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts +271 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js +4 -2
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts +548 -6
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js +15 -14
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +7 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +19 -7
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +3 -26
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +48 -7
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +0 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +19 -1
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +7 -3
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +28 -7
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +5 -14
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.d.ts +7 -6
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.js +23 -17
- package/dist/local-auth/core/generators/auth-module/templates/module/services/code-verification.service.ts +25 -18
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +8 -9
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +10 -11
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +31 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +249 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +31 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/ts-import-providers.js +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +310 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.js +12 -5
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/accept-invite.tsx +14 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/forgot-password.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.js +4 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login-otp.tsx +4 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +4 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +4 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +4 -4
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +4 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +1 -1
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +78 -7
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +32 -1
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +1 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +90 -12
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +5 -2
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +48 -1
- package/dist/local-auth/core/generators/react-session/react-session.generator.js +35 -1
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +17 -44
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +21 -49
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts +43 -34
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js +96 -80
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts +148 -82
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +0 -2
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +0 -1
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +0 -1
- package/dist/local-auth/core/node.js +7 -7
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +4 -3
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.d.ts +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/template-paths.js +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts +4 -4
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +13 -13
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.d.ts +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/templates/src/hooks/use-session.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +1 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +0 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/placeholder-auth-module.generator.d.ts +0 -1
- package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-CKKmnLep.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-DUupKqD4.js} +14 -14
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Cx7TvZ_H.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js} +198 -66
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-D3Nvasea.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js} +1 -1
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-C2GDE8Py.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js} +2517 -1545
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CiccpWjh.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-BckLhSjF.js} +2 -2
- package/dist/web/assets/auth-DR6QxrAW.js +1 -0
- package/dist/web/assets/{common-CoLuMS7U.js → common-BsyRiQi3.js} +6 -6
- package/dist/web/assets/{common-N3skPbzk.js → common-CRwNlCMn.js} +10 -10
- package/dist/web/assets/{common-Co5lW_TK.js → common-CvqlRZC9.js} +12 -12
- package/dist/web/assets/{common-C8_sC5pp.js → common-D3atSs7O.js} +15 -15
- package/dist/web/assets/common-DuFyXa6l.js +36 -0
- package/dist/web/assets/common-islduJTj.js +43 -0
- package/dist/web/assets/{get-auth-plugin-definition-DyokUVjX.js → get-auth-plugin-definition-BgWWHl_Y.js} +3 -3
- package/dist/web/assets/{hostInit-BCYmw0H5.js → hostInit-DNA4kLRY.js} +1 -1
- package/dist/web/assets/{mf-entry-bootstrap-0-3ede9334.js → mf-entry-bootstrap-0-ea77c09b.js} +1 -1
- package/dist/web/assets/{mf-entry-bootstrap-1-3da85eea.js → mf-entry-bootstrap-1-9dee3d8d.js} +2 -2
- package/dist/web/assets/{mf-entry-bootstrap-2-32e24e11.js → mf-entry-bootstrap-2-3179040b.js} +1 -1
- package/dist/web/assets/{mf-entry-bootstrap-3-a3cfea9d.js → mf-entry-bootstrap-3-370d200d.js} +2 -2
- package/dist/web/assets/{models-BcPOQC5p.js → models-BOeSYfRn.js} +4 -4
- package/dist/web/assets/{models-BcUgOGGn.js → models-DF6DoXt6.js} +4 -4
- package/dist/web/assets/{plugin-definition-D1EImXIf.js → plugin-definition--k0VAeK3.js} +9 -9
- package/dist/web/assets/{plugin-definition-lw-gB4hU.js → plugin-definition-CMwSlxsJ.js} +3 -3
- package/dist/web/assets/{styles-EOyEbGA4.js → styles-BQEcQHoR.js} +8 -8
- package/dist/web/assets/{virtualExposes-DWORnjyA.js → virtualExposes-C7fDiAmS.js} +1 -1
- package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-t-KnBiUh.js → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js} +3 -3
- package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DZfE3QCR.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js} +13 -13
- package/dist/web/assets/{web-kaD9AzNS.js → web-8wz0ad-V.js} +8 -8
- package/dist/web/assets/{web-EDeSquSP.js → web-BGixH_gT.js} +19 -19
- package/dist/web/assets/{web-PqAcfBSy.js → web-BxIwkN3O.js} +7 -7
- package/dist/web/assets/{web-CBVepebK.js → web-CQMfABjr.js} +19 -19
- package/dist/web/assets/{web-RhChfBw_.js → web-CcNpItSu.js} +17 -17
- package/dist/web/assets/{web-xJ-GnSkC.js → web-CypPeiVv.js} +25 -25
- package/dist/web/assets/{web-Dgb85jhs.js → web-CzK_la2_.js} +41 -41
- package/dist/web/index.html +4 -4
- package/dist/web/remoteEntry.js +1 -1
- package/package.json +12 -12
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -38
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -71
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -77
- package/dist/web/assets/auth-CsHp2bQi.js +0 -1
- package/dist/web/assets/common-BGTuTgx7.js +0 -43
- package/dist/web/assets/common-Dueu_1NG.js +0 -36
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as __exportAll } from "./rolldown-runtime-7_rZTKki.js";
|
|
2
|
-
import { Q as __mf_2$3, X as __mf_0$2, Y as require_with_selector, Z as __mf_1$2, _t as __mf_7$2, at as __mf_2$2, ct as __mf_24$2, et as __mfDefaultExport$1, ft as __mf_31$2, gt as __mf_38$2, ht as __mf_37$2, it as __mf_19$2, lt as __mf_25$2, mt as __mf_34$2, nt as __mf_14$2, ot as __mf_20$2, pt as __mf_33$2, q as __mf_2$4, rt as __mf_16$2, st as __mf_22$2, tt as __mf_13$2, ut as __mf_28$2, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__ } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-
|
|
2
|
+
import { Q as __mf_2$3, X as __mf_0$2, Y as require_with_selector, Z as __mf_1$2, _t as __mf_7$2, at as __mf_2$2, ct as __mf_24$2, et as __mfDefaultExport$1, ft as __mf_31$2, gt as __mf_38$2, ht as __mf_37$2, it as __mf_19$2, lt as __mf_25$2, mt as __mf_34$2, nt as __mf_14$2, ot as __mf_20$2, pt as __mf_33$2, q as __mf_2$4, rt as __mf_16$2, st as __mf_22$2, tt as __mf_13$2, ut as __mf_28$2, vt as init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__ } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js";
|
|
3
3
|
//#region ../../node_modules/.pnpm/@tanstack+react-router@1.170.18_react-dom@19.2.8_react@19.2.8/node_modules/@tanstack/react-router/dist/esm/utils.js
|
|
4
4
|
init__virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare__react__loadShare__();
|
|
5
5
|
/**
|
|
@@ -7533,4 +7533,4 @@ __mfApplySharedExports(exportModule);
|
|
|
7533
7533
|
//#endregion
|
|
7534
7534
|
export { __mf_92 as n, _virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__prebuild___mf_0_tanstack_mf_1_react_mf_2_router__prebuild___exports as r, __mf_13 as t };
|
|
7535
7535
|
|
|
7536
|
-
//# sourceMappingURL=_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-
|
|
7536
|
+
//# sourceMappingURL=_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-BckLhSjF.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./get-auth-plugin-definition-BgWWHl_Y.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { n as PLACEHOLDER_AUTH_MODELS, t as createPlaceholderAuthPluginDefinitionSchema } from "./plugin-definition-
|
|
1
|
+
import { C as __mf_71, S as __mf_70, y as __mf_56 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
|
+
import { n as PLACEHOLDER_AUTH_MODELS, t as createPlaceholderAuthPluginDefinitionSchema } from "./plugin-definition-CMwSlxsJ.js";
|
|
3
3
|
//#region src/placeholder-auth/core/common.ts
|
|
4
|
-
var common_default =
|
|
4
|
+
var common_default = __mf_56({
|
|
5
5
|
name: "common",
|
|
6
6
|
dependencies: {
|
|
7
|
-
pluginConfig:
|
|
8
|
-
authModels:
|
|
7
|
+
pluginConfig: __mf_71,
|
|
8
|
+
authModels: __mf_70
|
|
9
9
|
},
|
|
10
10
|
initialize: ({ pluginConfig, authModels }, { pluginKey }) => {
|
|
11
11
|
pluginConfig.schemas.set(pluginKey, createPlaceholderAuthPluginDefinitionSchema);
|
|
@@ -15,4 +15,4 @@ var common_default = __mf_55({
|
|
|
15
15
|
//#endregion
|
|
16
16
|
export { common_default as default };
|
|
17
17
|
|
|
18
|
-
//# sourceMappingURL=common-
|
|
18
|
+
//# sourceMappingURL=common-BsyRiQi3.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { t as createAuthPluginDefinitionSchema } from "./plugin-definition
|
|
1
|
+
import { C as __mf_71, d as __mf_159, h as __mf_24, x as __mf_69, y as __mf_56 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
|
+
import { t as createAuthPluginDefinitionSchema } from "./plugin-definition--k0VAeK3.js";
|
|
3
3
|
//#region src/auth/core/schema/migrations.ts
|
|
4
4
|
var AUTH_PLUGIN_CONFIG_MIGRATIONS = [{
|
|
5
5
|
name: "add-accounts-feature-ref",
|
|
@@ -8,11 +8,11 @@ var AUTH_PLUGIN_CONFIG_MIGRATIONS = [{
|
|
|
8
8
|
const typedConfig = config;
|
|
9
9
|
const features = projectDefinition.features ?? [];
|
|
10
10
|
const accountsFeature = features.find((f) => f.name === "accounts" && !f.parentRef);
|
|
11
|
-
const accountsId = accountsFeature?.id ??
|
|
11
|
+
const accountsId = accountsFeature?.id ?? __mf_159.generateNewId();
|
|
12
12
|
const accountsAuthFeature = features.find((f) => f.name === "accounts/auth");
|
|
13
|
-
const accountsAuthId = accountsAuthFeature?.id ??
|
|
13
|
+
const accountsAuthId = accountsAuthFeature?.id ?? __mf_159.generateNewId();
|
|
14
14
|
const accountsUsersFeature = features.find((f) => f.name === "accounts/users");
|
|
15
|
-
const accountsUsersId = accountsUsersFeature?.id ??
|
|
15
|
+
const accountsUsersId = accountsUsersFeature?.id ?? __mf_159.generateNewId();
|
|
16
16
|
return {
|
|
17
17
|
updatedConfig: {
|
|
18
18
|
...typedConfig,
|
|
@@ -42,22 +42,22 @@ var AUTH_PLUGIN_CONFIG_MIGRATIONS = [{
|
|
|
42
42
|
}];
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/auth/core/common.ts
|
|
45
|
-
var common_default =
|
|
45
|
+
var common_default = __mf_56({
|
|
46
46
|
name: "common",
|
|
47
47
|
dependencies: {
|
|
48
|
-
pluginConfig:
|
|
49
|
-
authConfig:
|
|
48
|
+
pluginConfig: __mf_71,
|
|
49
|
+
authConfig: __mf_69
|
|
50
50
|
},
|
|
51
51
|
initialize: ({ authConfig, pluginConfig }, { pluginKey }) => {
|
|
52
52
|
pluginConfig.schemas.set(pluginKey, createAuthPluginDefinitionSchema);
|
|
53
53
|
pluginConfig.migrations.set(pluginKey, AUTH_PLUGIN_CONFIG_MIGRATIONS);
|
|
54
54
|
authConfig.pluginKey.set(pluginKey);
|
|
55
55
|
authConfig.getAuthConfig.set((definition) => {
|
|
56
|
-
return { roles:
|
|
56
|
+
return { roles: __mf_24.configByKeyOrThrow(definition, pluginKey).roles };
|
|
57
57
|
});
|
|
58
58
|
}
|
|
59
59
|
});
|
|
60
60
|
//#endregion
|
|
61
61
|
export { common_default as default };
|
|
62
62
|
|
|
63
|
-
//# sourceMappingURL=common-
|
|
63
|
+
//# sourceMappingURL=common-CRwNlCMn.js.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { C as
|
|
1
|
+
import { C as __mf_71, S as __mf_70, f as __mf_18, l as __mf_150, v as __mf_40, y as __mf_56 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
2
|
import { t as BETTER_AUTH_MODELS } from "./model-names-CUS5rSei.js";
|
|
3
|
-
import { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-
|
|
4
|
-
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-
|
|
5
|
-
import "./auth-
|
|
3
|
+
import { n as createBetterAuthPluginDefinitionSchema, t as createBetterAuthPartialDefinition } from "./models-BOeSYfRn.js";
|
|
4
|
+
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-BgWWHl_Y.js";
|
|
5
|
+
import "./auth-DR6QxrAW.js";
|
|
6
6
|
//#region src/better-auth/core/schema/schema-issue-checker.ts
|
|
7
7
|
function createBetterAuthSchemaChecker(pluginKey) {
|
|
8
|
-
return
|
|
8
|
+
return __mf_40({
|
|
9
9
|
pluginKey,
|
|
10
10
|
pluginLabel: "Better Auth",
|
|
11
11
|
buildPartialDef: (container) => {
|
|
12
12
|
const authConfig = getAuthPluginDefinition(container.definition);
|
|
13
13
|
try {
|
|
14
|
-
const authFeatureName =
|
|
15
|
-
const accountsFeatureName =
|
|
14
|
+
const authFeatureName = __mf_18.getFeaturePathByIdOrThrow(container.definition, authConfig.authFeatureRef);
|
|
15
|
+
const accountsFeatureName = __mf_18.getFeaturePathByIdOrThrow(container.definition, authConfig.accountsFeatureRef);
|
|
16
16
|
return createBetterAuthPartialDefinition(authFeatureName, accountsFeatureName);
|
|
17
17
|
} catch {
|
|
18
18
|
return;
|
|
@@ -22,12 +22,12 @@ function createBetterAuthSchemaChecker(pluginKey) {
|
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/better-auth/core/common.ts
|
|
25
|
-
var common_default =
|
|
25
|
+
var common_default = __mf_56({
|
|
26
26
|
name: "common",
|
|
27
27
|
dependencies: {
|
|
28
|
-
pluginConfig:
|
|
29
|
-
authModels:
|
|
30
|
-
issueCheckers:
|
|
28
|
+
pluginConfig: __mf_71,
|
|
29
|
+
authModels: __mf_70,
|
|
30
|
+
issueCheckers: __mf_150
|
|
31
31
|
},
|
|
32
32
|
initialize: ({ pluginConfig, authModels, issueCheckers }, { pluginKey }) => {
|
|
33
33
|
pluginConfig.schemas.set(pluginKey, createBetterAuthPluginDefinitionSchema);
|
|
@@ -38,4 +38,4 @@ var common_default = __mf_55({
|
|
|
38
38
|
//#endregion
|
|
39
39
|
export { common_default as default };
|
|
40
40
|
|
|
41
|
-
//# sourceMappingURL=common-
|
|
41
|
+
//# sourceMappingURL=common-CvqlRZC9.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-
|
|
3
|
-
import "./auth-
|
|
1
|
+
import { C as __mf_71, S as __mf_70, f as __mf_18, j as __mfDefaultExport, l as __mf_150, p as __mf_195, s as __mf_142, u as __mf_156, v as __mf_40, y as __mf_56 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
|
+
import { t as getAuthPluginDefinition } from "./get-auth-plugin-definition-BgWWHl_Y.js";
|
|
3
|
+
import "./auth-DR6QxrAW.js";
|
|
4
4
|
import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
|
|
5
|
-
import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-
|
|
5
|
+
import { n as createLocalAuthPluginDefinitionSchema, t as createLocalAuthPartialDefinition } from "./models-DF6DoXt6.js";
|
|
6
6
|
//#region src/local-auth/core/schema/migrations.ts
|
|
7
7
|
var LOCAL_AUTH_PLUGIN_CONFIG_MIGRATIONS = [{
|
|
8
8
|
name: "add-auth-verification-attempts",
|
|
@@ -13,7 +13,7 @@ var LOCAL_AUTH_PLUGIN_CONFIG_MIGRATIONS = [{
|
|
|
13
13
|
const timestampIndex = fields.findIndex((field) => field.name === "expiresAt");
|
|
14
14
|
const insertAt = timestampIndex === -1 ? fields.length : timestampIndex;
|
|
15
15
|
fields.splice(insertAt, 0, {
|
|
16
|
-
id:
|
|
16
|
+
id: __mf_195.generateNewId(),
|
|
17
17
|
name: "attempts",
|
|
18
18
|
type: "int",
|
|
19
19
|
isOptional: false,
|
|
@@ -24,14 +24,14 @@ var LOCAL_AUTH_PLUGIN_CONFIG_MIGRATIONS = [{
|
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/local-auth/core/schema/schema-issue-checker.ts
|
|
26
26
|
function createLocalAuthSchemaChecker(pluginKey) {
|
|
27
|
-
return
|
|
27
|
+
return __mf_40({
|
|
28
28
|
pluginKey,
|
|
29
29
|
pluginLabel: "Local Auth",
|
|
30
30
|
buildPartialDef: (container) => {
|
|
31
31
|
const authConfig = getAuthPluginDefinition(container.definition);
|
|
32
32
|
try {
|
|
33
|
-
const authFeatureName =
|
|
34
|
-
const accountsFeatureName =
|
|
33
|
+
const authFeatureName = __mf_18.getFeaturePathByIdOrThrow(container.definition, authConfig.authFeatureRef);
|
|
34
|
+
const accountsFeatureName = __mf_18.getFeaturePathByIdOrThrow(container.definition, authConfig.accountsFeatureRef);
|
|
35
35
|
return createLocalAuthPartialDefinition(authFeatureName, accountsFeatureName);
|
|
36
36
|
} catch {
|
|
37
37
|
return;
|
|
@@ -45,16 +45,16 @@ function createLocalAuthSchemaChecker(pluginKey) {
|
|
|
45
45
|
* Per-app local-auth settings contributed to the web app config via
|
|
46
46
|
* `webAppSchemaExtensionSpec`, stored under `pluginData[localAuthPluginKey]`.
|
|
47
47
|
*/
|
|
48
|
-
var createLocalAuthWebAppSchema =
|
|
48
|
+
var createLocalAuthWebAppSchema = __mf_156((ctx) => __mfDefaultExport.object({ disableRegistration: ctx.withDefault(__mfDefaultExport.boolean(), false) }));
|
|
49
49
|
//#endregion
|
|
50
50
|
//#region src/local-auth/core/common.ts
|
|
51
|
-
var common_default =
|
|
51
|
+
var common_default = __mf_56({
|
|
52
52
|
name: "common",
|
|
53
53
|
dependencies: {
|
|
54
|
-
pluginConfig:
|
|
55
|
-
authModels:
|
|
56
|
-
issueCheckers:
|
|
57
|
-
webAppSchemaExtension:
|
|
54
|
+
pluginConfig: __mf_71,
|
|
55
|
+
authModels: __mf_70,
|
|
56
|
+
issueCheckers: __mf_150,
|
|
57
|
+
webAppSchemaExtension: __mf_142
|
|
58
58
|
},
|
|
59
59
|
initialize: ({ pluginConfig, authModels, issueCheckers, webAppSchemaExtension }, { pluginKey }) => {
|
|
60
60
|
pluginConfig.schemas.set(pluginKey, createLocalAuthPluginDefinitionSchema);
|
|
@@ -67,4 +67,4 @@ var common_default = __mf_55({
|
|
|
67
67
|
//#endregion
|
|
68
68
|
export { common_default as default };
|
|
69
69
|
|
|
70
|
-
//# sourceMappingURL=common-
|
|
70
|
+
//# sourceMappingURL=common-D3atSs7O.js.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { M as __mf_0, a as __mf_120, i as __mf_115, n as __mf_112, o as __mf_121, r as __mf_113, t as __mf_107, u as __mf_156, y as __mf_56 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
|
+
//#region src/better-auth/admin/schema/manage-role-action.ts
|
|
3
|
+
var createAdminCrudManageRolesActionSchema = __mf_156(() => __mf_112.extend({ type: __mf_0.literal("manage-roles") }));
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/better-auth/admin/schema/reset-password-action.ts
|
|
6
|
+
var createAdminCrudResetPasswordActionSchema = __mf_156(() => __mf_112.extend({ type: __mf_0.literal("reset-password") }));
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/better-auth/admin/schema/roles-column.ts
|
|
9
|
+
var createAdminCrudRolesColumnSchema = __mf_156(() => __mf_120.extend({ type: __mf_0.literal("roles") }));
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/better-auth/admin/common.ts
|
|
12
|
+
var common_default = __mf_56({
|
|
13
|
+
name: "common",
|
|
14
|
+
dependencies: {
|
|
15
|
+
adminCrudAction: __mf_107,
|
|
16
|
+
adminCrudColumn: __mf_115
|
|
17
|
+
},
|
|
18
|
+
initialize: ({ adminCrudAction, adminCrudColumn }) => {
|
|
19
|
+
adminCrudAction.actions.add(__mf_113({
|
|
20
|
+
name: "manage-roles",
|
|
21
|
+
createSchema: createAdminCrudManageRolesActionSchema
|
|
22
|
+
}));
|
|
23
|
+
adminCrudAction.actions.add(__mf_113({
|
|
24
|
+
name: "reset-password",
|
|
25
|
+
createSchema: createAdminCrudResetPasswordActionSchema
|
|
26
|
+
}));
|
|
27
|
+
adminCrudColumn.columns.add(__mf_121({
|
|
28
|
+
name: "roles",
|
|
29
|
+
createSchema: createAdminCrudRolesColumnSchema
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { common_default as default };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=common-DuFyXa6l.js.map
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { M as __mf_0, a as __mf_120, i as __mf_115, n as __mf_112, o as __mf_121, r as __mf_113, t as __mf_107, u as __mf_156, y as __mf_56 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
|
+
//#region src/local-auth/admin/schema/invite-user-action.ts
|
|
3
|
+
var createAdminCrudInviteUserActionSchema = __mf_156(() => __mf_112.extend({ type: __mf_0.literal("invite-user") }));
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region src/local-auth/admin/schema/manage-role-action.ts
|
|
6
|
+
var createAdminCrudManageRolesActionSchema = __mf_156(() => __mf_112.extend({ type: __mf_0.literal("manage-roles") }));
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/local-auth/admin/schema/reset-password-action.ts
|
|
9
|
+
var createAdminCrudResetPasswordActionSchema = __mf_156(() => __mf_112.extend({ type: __mf_0.literal("reset-password") }));
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region src/local-auth/admin/schema/roles-column.ts
|
|
12
|
+
var createAdminCrudRolesColumnSchema = __mf_156(() => __mf_120.extend({ type: __mf_0.literal("roles") }));
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/local-auth/admin/common.ts
|
|
15
|
+
var common_default = __mf_56({
|
|
16
|
+
name: "common",
|
|
17
|
+
dependencies: {
|
|
18
|
+
adminCrudAction: __mf_107,
|
|
19
|
+
adminCrudColumn: __mf_115
|
|
20
|
+
},
|
|
21
|
+
initialize: ({ adminCrudAction, adminCrudColumn }) => {
|
|
22
|
+
adminCrudAction.actions.add(__mf_113({
|
|
23
|
+
name: "manage-roles",
|
|
24
|
+
createSchema: createAdminCrudManageRolesActionSchema
|
|
25
|
+
}));
|
|
26
|
+
adminCrudAction.actions.add(__mf_113({
|
|
27
|
+
name: "reset-password",
|
|
28
|
+
createSchema: createAdminCrudResetPasswordActionSchema
|
|
29
|
+
}));
|
|
30
|
+
adminCrudAction.actions.add(__mf_113({
|
|
31
|
+
name: "invite-user",
|
|
32
|
+
createSchema: createAdminCrudInviteUserActionSchema
|
|
33
|
+
}));
|
|
34
|
+
adminCrudColumn.columns.add(__mf_121({
|
|
35
|
+
name: "roles",
|
|
36
|
+
createSchema: createAdminCrudRolesColumnSchema
|
|
37
|
+
}));
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
export { common_default as default };
|
|
42
|
+
|
|
43
|
+
//# sourceMappingURL=common-islduJTj.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as
|
|
1
|
+
import { h as __mf_24 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
2
|
//#region src/auth/utils/get-auth-plugin-definition.ts
|
|
3
3
|
/**
|
|
4
4
|
* Get the auth plugin definition from the project definition.
|
|
@@ -6,9 +6,9 @@ import { h as __mf_23 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf
|
|
|
6
6
|
* @returns The auth plugin definition.
|
|
7
7
|
*/
|
|
8
8
|
function getAuthPluginDefinition(definition) {
|
|
9
|
-
return
|
|
9
|
+
return __mf_24.configByKeyOrThrow(definition, "baseplate-dev_plugin-auth_auth");
|
|
10
10
|
}
|
|
11
11
|
//#endregion
|
|
12
12
|
export { getAuthPluginDefinition as t };
|
|
13
13
|
|
|
14
|
-
//# sourceMappingURL=get-auth-plugin-definition-
|
|
14
|
+
//# sourceMappingURL=get-auth-plugin-definition-BgWWHl_Y.js.map
|
|
@@ -72,7 +72,7 @@ async function initHost() {
|
|
|
72
72
|
};
|
|
73
73
|
const runtime = await (await __vitePreload(() => import("../remoteEntry.js"), [], import.meta.url)).init();
|
|
74
74
|
const { usedShared } = await __vitePreload(async () => {
|
|
75
|
-
const { usedShared } = await import("./_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-
|
|
75
|
+
const { usedShared } = await import("./_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-DUupKqD4.js");
|
|
76
76
|
return { usedShared };
|
|
77
77
|
}, [], import.meta.url);
|
|
78
78
|
const __mfNormalizeRuntimeShare = (mod) => {
|
package/dist/web/assets/{mf-entry-bootstrap-0-3ede9334.js → mf-entry-bootstrap-0-ea77c09b.js}
RENAMED
|
@@ -26,7 +26,7 @@ const __mfImport = (src) =>
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
(async () => {
|
|
29
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
29
|
+
const __mfHostInit = await __mfImport("./hostInit-DNA4kLRY.js");
|
|
30
30
|
await __mfHostInit.__tla;
|
|
31
31
|
const { initHost } = __mfHostInit;
|
|
32
32
|
await initHost();
|
package/dist/web/assets/{mf-entry-bootstrap-1-3da85eea.js → mf-entry-bootstrap-1-9dee3d8d.js}
RENAMED
|
@@ -26,11 +26,11 @@ const __mfImport = (src) =>
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
(async () => {
|
|
29
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
29
|
+
const __mfHostInit = await __mfImport("./hostInit-DNA4kLRY.js");
|
|
30
30
|
await __mfHostInit.__tla;
|
|
31
31
|
const { initHost } = __mfHostInit;
|
|
32
32
|
await initHost();
|
|
33
33
|
if (__mfModuleCache.pendingShareLoads) {
|
|
34
34
|
await Promise.all(__mfModuleCache.pendingShareLoads);
|
|
35
35
|
}
|
|
36
|
-
})().then(() => __mfImport("./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-
|
|
36
|
+
})().then(() => __mfImport("./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js"));
|
package/dist/web/assets/{mf-entry-bootstrap-2-32e24e11.js → mf-entry-bootstrap-2-3179040b.js}
RENAMED
|
@@ -26,7 +26,7 @@ const __mfImport = (src) =>
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
(async () => {
|
|
29
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
29
|
+
const __mfHostInit = await __mfImport("./hostInit-DNA4kLRY.js");
|
|
30
30
|
await __mfHostInit.__tla;
|
|
31
31
|
const { initHost } = __mfHostInit;
|
|
32
32
|
await initHost();
|
package/dist/web/assets/{mf-entry-bootstrap-3-a3cfea9d.js → mf-entry-bootstrap-3-370d200d.js}
RENAMED
|
@@ -26,11 +26,11 @@ const __mfImport = (src) =>
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
(async () => {
|
|
29
|
-
const __mfHostInit = await __mfImport("./hostInit-
|
|
29
|
+
const __mfHostInit = await __mfImport("./hostInit-DNA4kLRY.js");
|
|
30
30
|
await __mfHostInit.__tla;
|
|
31
31
|
const { initHost } = __mfHostInit;
|
|
32
32
|
await initHost();
|
|
33
33
|
if (__mfModuleCache.pendingShareLoads) {
|
|
34
34
|
await Promise.all(__mfModuleCache.pendingShareLoads);
|
|
35
35
|
}
|
|
36
|
-
})().then(() => __mfImport("./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-
|
|
36
|
+
})().then(() => __mfImport("./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js"));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as __mf_0, c as
|
|
1
|
+
import { M as __mf_0, c as __mf_146, u as __mf_156 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
2
|
import { t as BETTER_AUTH_MODELS } from "./model-names-CUS5rSei.js";
|
|
3
3
|
//#region src/better-auth/core/schema/plugin-definition.ts
|
|
4
|
-
var createBetterAuthPluginDefinitionSchema =
|
|
5
|
-
type:
|
|
4
|
+
var createBetterAuthPluginDefinitionSchema = __mf_156((ctx) => __mf_0.object({ additionalUserAdminRoles: ctx.withDefault(__mf_0.array(ctx.withRef({
|
|
5
|
+
type: __mf_146,
|
|
6
6
|
onDelete: "DELETE"
|
|
7
7
|
})), []) }));
|
|
8
8
|
//#endregion
|
|
@@ -300,4 +300,4 @@ function createBetterAuthPartialDefinition(authFeatureName, accountsFeatureName)
|
|
|
300
300
|
//#endregion
|
|
301
301
|
export { createBetterAuthPluginDefinitionSchema as n, createBetterAuthPartialDefinition as t };
|
|
302
302
|
|
|
303
|
-
//# sourceMappingURL=models-
|
|
303
|
+
//# sourceMappingURL=models-BOeSYfRn.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { M as __mf_0, c as
|
|
1
|
+
import { M as __mf_0, c as __mf_146, u as __mf_156 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
2
|
import { t as LOCAL_AUTH_MODELS } from "./model-names-BluImOzu.js";
|
|
3
3
|
//#region src/local-auth/core/schema/plugin-definition.ts
|
|
4
|
-
var createLocalAuthPluginDefinitionSchema =
|
|
4
|
+
var createLocalAuthPluginDefinitionSchema = __mf_156((ctx) => __mf_0.object({
|
|
5
5
|
additionalUserAdminRoles: ctx.withDefault(__mf_0.array(ctx.withRef({
|
|
6
|
-
type:
|
|
6
|
+
type: __mf_146,
|
|
7
7
|
onDelete: "DELETE"
|
|
8
8
|
})), []),
|
|
9
9
|
requireNameOnRegistration: __mf_0.boolean().default(false),
|
|
@@ -287,4 +287,4 @@ function createLocalAuthPartialDefinition(authFeatureName, accountsFeatureName)
|
|
|
287
287
|
//#endregion
|
|
288
288
|
export { createLocalAuthPluginDefinitionSchema as n, createLocalAuthPartialDefinition as t };
|
|
289
289
|
|
|
290
|
-
//# sourceMappingURL=models-
|
|
290
|
+
//# sourceMappingURL=models-DF6DoXt6.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as __mf_0, c as
|
|
1
|
+
import { M as __mf_0, c as __mf_146, d as __mf_159, u as __mf_156 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
2
|
//#region src/auth/core/schema/roles/constants.ts
|
|
3
3
|
var AUTH_DEFAULT_ROLES = [
|
|
4
4
|
{
|
|
@@ -29,23 +29,23 @@ var AUTH_DEFAULT_ROLES = [
|
|
|
29
29
|
function createDefaultAuthRoles() {
|
|
30
30
|
return AUTH_DEFAULT_ROLES.map((role) => ({
|
|
31
31
|
...role,
|
|
32
|
-
id:
|
|
32
|
+
id: __mf_146.generateNewId()
|
|
33
33
|
}));
|
|
34
34
|
}
|
|
35
35
|
//#endregion
|
|
36
36
|
//#region src/auth/core/schema/roles/schema.ts
|
|
37
|
-
var createAuthRoleSchema =
|
|
37
|
+
var createAuthRoleSchema = __mf_156((ctx) => ctx.withEnt(__mf_0.object({
|
|
38
38
|
id: __mf_0.string(),
|
|
39
39
|
name: __mf_0.string().min(1),
|
|
40
40
|
comment: __mf_0.string().min(1),
|
|
41
41
|
builtIn: __mf_0.boolean().default(false),
|
|
42
42
|
autoAssigned: __mf_0.boolean().default(false)
|
|
43
|
-
}), { type:
|
|
43
|
+
}), { type: __mf_146 }));
|
|
44
44
|
/**
|
|
45
45
|
* Defines the schema for an array of roles ensuring that there are no duplicate
|
|
46
46
|
* role names and that the built-in roles are included.
|
|
47
47
|
*/
|
|
48
|
-
var createAuthRolesSchema =
|
|
48
|
+
var createAuthRolesSchema = __mf_156((ctx) => __mf_0.array(createAuthRoleSchema(ctx)).superRefine((roles, ctx) => {
|
|
49
49
|
const dup = roles.map((r) => r.name).filter((v, i, a) => a.indexOf(v) !== i);
|
|
50
50
|
if (dup.length > 0) ctx.addIssue({
|
|
51
51
|
code: "custom",
|
|
@@ -59,14 +59,14 @@ var createAuthRolesSchema = __mf_155((ctx) => __mf_0.array(createAuthRoleSchema(
|
|
|
59
59
|
}));
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region src/auth/core/schema/plugin-definition.ts
|
|
62
|
-
var createAuthPluginDefinitionSchema =
|
|
62
|
+
var createAuthPluginDefinitionSchema = __mf_156((ctx) => __mf_0.object({
|
|
63
63
|
implementationPluginKey: __mf_0.string().min(1, "Auth implementation plugin must be selected"),
|
|
64
64
|
authFeatureRef: ctx.withRef({
|
|
65
|
-
type:
|
|
65
|
+
type: __mf_159,
|
|
66
66
|
onDelete: "RESTRICT"
|
|
67
67
|
}),
|
|
68
68
|
accountsFeatureRef: ctx.withRef({
|
|
69
|
-
type:
|
|
69
|
+
type: __mf_159,
|
|
70
70
|
onDelete: "RESTRICT"
|
|
71
71
|
}),
|
|
72
72
|
roles: createAuthRolesSchema(ctx)
|
|
@@ -74,4 +74,4 @@ var createAuthPluginDefinitionSchema = __mf_155((ctx) => __mf_0.object({
|
|
|
74
74
|
//#endregion
|
|
75
75
|
export { createAuthRoleSchema as n, createDefaultAuthRoles as r, createAuthPluginDefinitionSchema as t };
|
|
76
76
|
|
|
77
|
-
//# sourceMappingURL=plugin-definition
|
|
77
|
+
//# sourceMappingURL=plugin-definition--k0VAeK3.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { M as __mf_0, u as
|
|
1
|
+
import { M as __mf_0, u as __mf_156 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
2
2
|
//#region src/placeholder-auth/constants/model-names.ts
|
|
3
3
|
var PLACEHOLDER_AUTH_MODELS = { user: "User" };
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/placeholder-auth/core/schema/plugin-definition.ts
|
|
6
|
-
var createPlaceholderAuthPluginDefinitionSchema =
|
|
6
|
+
var createPlaceholderAuthPluginDefinitionSchema = __mf_156(() => __mf_0.object({}));
|
|
7
7
|
//#endregion
|
|
8
8
|
export { PLACEHOLDER_AUTH_MODELS as n, createPlaceholderAuthPluginDefinitionSchema as t };
|
|
9
9
|
|
|
10
|
-
//# sourceMappingURL=plugin-definition-
|
|
10
|
+
//# sourceMappingURL=plugin-definition-CMwSlxsJ.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { B as appendErrors, H as set, Q as __mf_2, V as get, Z as __mf_1,
|
|
2
|
-
import { t as __mf_13 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-
|
|
3
|
-
import { L as parse, R as parseAsync, h as
|
|
4
|
-
import { r as __mf_14 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-
|
|
1
|
+
import { B as appendErrors, H as set, Q as __mf_2, V as get, Z as __mf_1, a as __mf_178, o as __mf_179 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-CtIleM_e.js";
|
|
2
|
+
import { t as __mf_13 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-BckLhSjF.js";
|
|
3
|
+
import { L as parse, R as parseAsync, h as __mf_24, z as $ZodError } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-DE4rTqEA.js";
|
|
4
|
+
import { r as __mf_14 } from "./_virtual_mf___mfe_internal__plugin_mf_2_auth__mf_owner__1__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-mszeXpf-.js";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@hookform+resolvers@5.2.2_react-hook-form@7.71.1/node_modules/@hookform/resolvers/dist/resolvers.mjs
|
|
6
6
|
var r = (t, r, o) => {
|
|
7
7
|
if (t && "reportValidity" in t) {
|
|
@@ -151,17 +151,17 @@ function AuthConfigTabs() {
|
|
|
151
151
|
const { definition, schemaParserContext } = __mf_14();
|
|
152
152
|
const authPlugin = schemaParserContext.pluginStore.availablePlugins.find((p) => p.metadata.packageName === "@baseplate-dev/plugin-auth" && p.metadata.name === "auth");
|
|
153
153
|
if (!authPlugin) return null;
|
|
154
|
-
const implementationPluginKey =
|
|
154
|
+
const implementationPluginKey = __mf_24.configByKey(definition, authPlugin.metadata.key)?.implementationPluginKey;
|
|
155
155
|
const authImplementationPlugin = schemaParserContext.pluginStore.availablePlugins.find((p) => p.metadata.key === implementationPluginKey);
|
|
156
156
|
if (!authImplementationPlugin) return null;
|
|
157
|
-
return /* @__PURE__ */ __mf_2(
|
|
157
|
+
return /* @__PURE__ */ __mf_2(__mf_178, { children: [/* @__PURE__ */ __mf_1(__mf_179, {
|
|
158
158
|
render: /* @__PURE__ */ __mf_1(__mf_13, {
|
|
159
159
|
to: "/plugins/edit/$key",
|
|
160
160
|
params: { key: authPlugin.metadata.key },
|
|
161
161
|
activeOptions: { exact: true }
|
|
162
162
|
}),
|
|
163
163
|
children: "Auth"
|
|
164
|
-
}), /* @__PURE__ */ __mf_1(
|
|
164
|
+
}), /* @__PURE__ */ __mf_1(__mf_179, {
|
|
165
165
|
render: /* @__PURE__ */ __mf_1(__mf_13, {
|
|
166
166
|
to: `/plugins/edit/${authImplementationPlugin.metadata.key}`,
|
|
167
167
|
activeOptions: { exact: true }
|
|
@@ -172,4 +172,4 @@ function AuthConfigTabs() {
|
|
|
172
172
|
//#endregion
|
|
173
173
|
export { a as n, AuthConfigTabs as t };
|
|
174
174
|
|
|
175
|
-
//# sourceMappingURL=styles-
|
|
175
|
+
//# sourceMappingURL=styles-BQEcQHoR.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default } from "./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-
|
|
1
|
+
import { t as virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default } from "./virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-6SjVUCs8.js";
|
|
2
2
|
export { virtual_mf_exposes___mfe_internal__plugin_auth__remoteEntry_js_default as default };
|
|
@@ -125,14 +125,14 @@ var __mfResolveExternalSharedProvider = (instances, scopeRoot, shared, scopeName
|
|
|
125
125
|
};
|
|
126
126
|
};
|
|
127
127
|
async function getLocalSharedImportMap() {
|
|
128
|
-
if (!localSharedImportMapPromise) localSharedImportMapPromise = retrySharedInit(() => __vitePreload(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-
|
|
128
|
+
if (!localSharedImportMapPromise) localSharedImportMapPromise = retrySharedInit(() => __vitePreload(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth__mf_owner__1-DUupKqD4.js"), [], import.meta.url)).catch((e) => {
|
|
129
129
|
localSharedImportMapPromise = void 0;
|
|
130
130
|
throw e;
|
|
131
131
|
});
|
|
132
132
|
return localSharedImportMapPromise;
|
|
133
133
|
}
|
|
134
134
|
async function getExposesMap() {
|
|
135
|
-
if (!exposesMapPromise) exposesMapPromise = retrySharedInit(() => __vitePreload(() => import("./virtualExposes-
|
|
135
|
+
if (!exposesMapPromise) exposesMapPromise = retrySharedInit(() => __vitePreload(() => import("./virtualExposes-C7fDiAmS.js"), [], import.meta.url)).then((mod) => mod.default ?? mod).catch((e) => {
|
|
136
136
|
exposesMapPromise = void 0;
|
|
137
137
|
throw e;
|
|
138
138
|
});
|
|
@@ -744,4 +744,4 @@ async function getExposes(moduleName) {
|
|
|
744
744
|
//#endregion
|
|
745
745
|
export { init as n, getExposes as t };
|
|
746
746
|
|
|
747
|
-
//# sourceMappingURL=virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-
|
|
747
|
+
//# sourceMappingURL=virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-BZBRyml2.js.map
|