@baseplate-dev/plugin-auth 1.0.5 → 2.0.0
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/dist/auth/core/common.d.ts.map +1 -1
- package/dist/auth/core/common.js +3 -7
- package/dist/auth/core/common.js.map +1 -1
- package/dist/auth/core/components/auth-definition-editor.d.ts.map +1 -1
- package/dist/auth/core/components/auth-definition-editor.js +44 -30
- package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
- package/dist/{common/roles → auth/core}/components/role-editor-form/role-dialog.d.ts +1 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.d.ts.map +1 -0
- package/dist/{common/roles → auth/core}/components/role-editor-form/role-dialog.js +1 -1
- package/dist/auth/core/components/role-editor-form/role-dialog.js.map +1 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts +10 -0
- package/dist/auth/core/components/role-editor-form/role-editor-form.d.ts.map +1 -0
- package/dist/{common/roles → auth/core}/components/role-editor-form/role-editor-form.js +6 -3
- package/dist/auth/core/components/role-editor-form/role-editor-form.js.map +1 -0
- package/dist/auth/core/node.d.ts.map +1 -1
- package/dist/auth/core/node.js +24 -43
- package/dist/auth/core/node.js.map +1 -1
- package/dist/auth/core/schema/plugin-definition.d.ts +3 -28
- package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth/core/schema/plugin-definition.js +5 -20
- package/dist/auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth/core/schema/roles/constants.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/constants.js.map +1 -0
- package/dist/auth/core/schema/roles/index.d.ts +3 -0
- package/dist/auth/core/schema/roles/index.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/index.js +3 -0
- package/dist/auth/core/schema/roles/index.js.map +1 -0
- package/dist/auth/core/schema/roles/schema.d.ts.map +1 -0
- package/dist/auth/core/schema/roles/schema.js.map +1 -0
- package/dist/auth/core/web.js +2 -2
- package/dist/auth/core/web.js.map +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +1 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/auth/plugin.json +8 -0
- package/dist/auth/utils/get-auth-plugin-definition.d.ts +9 -0
- package/dist/auth/utils/get-auth-plugin-definition.d.ts.map +1 -0
- package/dist/auth/utils/get-auth-plugin-definition.js +10 -0
- package/dist/auth/utils/get-auth-plugin-definition.js.map +1 -0
- package/dist/auth/utils/index.d.ts +2 -0
- package/dist/auth/utils/index.d.ts.map +1 -0
- package/dist/auth/utils/index.js +2 -0
- package/dist/auth/utils/index.js.map +1 -0
- package/dist/auth0/core/common.d.ts +2 -1
- package/dist/auth0/core/common.d.ts.map +1 -1
- package/dist/auth0/core/common.js +7 -11
- package/dist/auth0/core/common.js.map +1 -1
- package/dist/auth0/core/components/auth0-definition-editor.d.ts +5 -0
- package/dist/auth0/core/components/auth0-definition-editor.d.ts.map +1 -0
- package/dist/auth0/core/components/auth0-definition-editor.js +54 -0
- package/dist/auth0/core/components/auth0-definition-editor.js.map +1 -0
- package/dist/auth0/core/node.d.ts.map +1 -1
- package/dist/auth0/core/node.js +23 -30
- package/dist/auth0/core/node.js.map +1 -1
- package/dist/auth0/core/schema/models.d.ts +2 -1
- package/dist/auth0/core/schema/models.d.ts.map +1 -1
- package/dist/auth0/core/schema/models.js +1 -1
- package/dist/auth0/core/schema/models.js.map +1 -1
- package/dist/auth0/core/schema/plugin-definition.d.ts +0 -61
- package/dist/auth0/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth0/core/schema/plugin-definition.js +1 -7
- package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth0/core/web.js +3 -3
- package/dist/auth0/core/web.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts +3 -0
- package/dist/auth0/generators/fastify/auth0-module/auth0-module.generator.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +6 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +3 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts +3 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts +4 -0
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js +7 -1
- package/dist/auth0/generators/react/auth0-hooks/auth0-hooks.generator.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +6 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts +3 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/ts-import-providers.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts +6 -2
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js +6 -2
- package/dist/auth0/generators/react/auth0-hooks/generated/typed-templates.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/templates/src/hooks/use-session.ts +14 -1
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts +2 -0
- package/dist/auth0/generators/react/react-auth0/react-auth0.generator.d.ts.map +1 -1
- package/dist/auth0/{metadata.json → plugin.json} +2 -1
- package/dist/common/components/auth-config-tabs.d.ts +2 -0
- package/dist/common/components/auth-config-tabs.d.ts.map +1 -0
- package/dist/common/components/auth-config-tabs.js +21 -0
- package/dist/common/components/auth-config-tabs.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/local-auth/core/common.d.ts +8 -0
- package/dist/local-auth/core/common.d.ts.map +1 -0
- package/dist/local-auth/core/common.js +22 -0
- package/dist/local-auth/core/common.js.map +1 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts +5 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.d.ts.map +1 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.js +62 -0
- package/dist/local-auth/core/components/local-auth-definition-editor.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-apollo/auth-apollo.generator.d.ts +1 -15
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-apollo/auth-apollo.generator.js +2 -6
- package/dist/local-auth/core/generators/auth-apollo/auth-apollo.generator.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-apollo/templates/session-error-link.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/auth-email-password.generator.d.ts +7 -6
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/auth-email-password.generator.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/index.d.ts +8 -7
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts +14 -0
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/template-paths.js +7 -7
- package/dist/local-auth/core/generators/auth-email-password/generated/template-paths.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/template-renderers.d.ts +7 -7
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/template-renderers.js +12 -12
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/ts-import-providers.d.ts +5 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/ts-import-providers.js +7 -5
- package/dist/local-auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/typed-templates.d.ts +1 -1
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/generated/typed-templates.js +3 -2
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +1 -0
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.ts +2 -2
- package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts +9 -1
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/services/user-password.service.js +6 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/services/user-password.service.ts +17 -4
- package/dist/{auth → local-auth}/core/generators/auth-hooks/auth-hooks.generator.d.ts +12 -20
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/auth-hooks.generator.js +2 -2
- package/dist/local-auth/core/generators/auth-hooks/auth-hooks.generator.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/index.d.ts +17 -54
- package/dist/local-auth/core/generators/auth-hooks/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/index.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-paths.d.ts +4 -4
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-paths.js +9 -7
- package/dist/local-auth/core/generators/auth-hooks/generated/template-paths.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-renderers.d.ts +9 -23
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/template-renderers.js +15 -13
- package/dist/local-auth/core/generators/auth-hooks/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +31 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js +38 -0
- package/dist/local-auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/typed-templates.d.ts +7 -65
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/generated/typed-templates.js +14 -4
- package/dist/local-auth/core/generators/auth-hooks/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-hooks/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/index.js +3 -0
- package/dist/local-auth/core/generators/auth-hooks/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.js +4 -4
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.ts +4 -4
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.js +3 -7
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.ts +3 -7
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +16 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +1 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +32 -0
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js +1 -1
- package/dist/local-auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.ts +1 -1
- package/dist/{auth → local-auth}/core/generators/auth-module/auth-module.generator.d.ts +12 -6
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/auth-module.generator.js +3 -3
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/index.d.ts +38 -8
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.js +11 -0
- package/dist/local-auth/core/generators/auth-module/generated/index.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-paths.d.ts +5 -4
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-paths.js +10 -7
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-renderers.d.ts +16 -10
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/template-renderers.js +19 -16
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/ts-import-providers.d.ts +2 -2
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/ts-import-providers.js +5 -5
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/typed-templates.d.ts +45 -3
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/generated/typed-templates.js +19 -2
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts +8 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js +16 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/auth-role.enum.ts +21 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.ts +2 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.js +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/services/user-session.service.js +11 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/services/user-session.service.ts +13 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/auth-routes.generator.d.ts +1 -15
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/index.d.ts +3 -45
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/index.d.ts.map +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-paths.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-renderers.d.ts +1 -15
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-renderers.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/typed-templates.d.ts +4 -60
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/typed-templates.d.ts.map +1 -1
- package/dist/{auth → local-auth}/core/generators/auth-routes/generated/typed-templates.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/index.js.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/login.js +2 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/login.tsx +2 -3
- package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/queries.gql +2 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +15 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/register.js +2 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/register.tsx +2 -3
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +2 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +1 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/index.d.ts +1 -0
- package/dist/local-auth/core/generators/index.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/index.js +1 -0
- package/dist/local-auth/core/generators/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-auth/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-auth/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/react-auth/react-auth.generator.js +1 -1
- package/dist/local-auth/core/generators/react-auth/react-auth.generator.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +345 -0
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/index.js +11 -0
- package/dist/{auth/core/generators/auth-email-password → local-auth/core/generators/react-session}/generated/index.js.map +1 -1
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts +14 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js +26 -0
- package/dist/local-auth/core/generators/react-session/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +173 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js +58 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts +22 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js +30 -0
- package/dist/local-auth/core/generators/react-session/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +324 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js +46 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/react-session/index.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +189 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/react-session/react-session.generator.js +6 -11
- package/dist/local-auth/core/generators/react-session/react-session.generator.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +1 -0
- package/dist/{auth/core/generators/react-session/templates/src/app/user-session-check.gql → local-auth/core/generators/react-session/templates/src/app/user-session-provider.gql} +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js +48 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +1 -0
- package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +73 -0
- package/dist/{auth → local-auth}/core/generators/react-session/templates/src/services/user-session-client.d.ts +10 -31
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/generators/react-session/templates/src/services/user-session-client.js +9 -25
- package/dist/local-auth/core/generators/react-session/templates/src/services/user-session-client.js.map +1 -0
- package/dist/{auth → local-auth}/core/generators/react-session/templates/src/services/user-session-client.ts +15 -52
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts +75 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js +11 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/index.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts +12 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js +24 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-paths.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts +38 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js +44 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/template-renderers.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts +19 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js +26 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/ts-import-providers.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts +27 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js +20 -0
- package/dist/local-auth/core/generators/seed-initial-user/generated/typed-templates.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts +4 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.js +3 -0
- package/dist/local-auth/core/generators/seed-initial-user/index.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts +46 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js +57 -0
- package/dist/local-auth/core/generators/seed-initial-user/seed-initial-user.generator.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts +3 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.d.ts.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js +32 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.js.map +1 -0
- package/dist/local-auth/core/generators/seed-initial-user/templates/src/prisma/seed-initial-user.ts +43 -0
- package/dist/local-auth/core/index.d.ts.map +1 -0
- package/dist/local-auth/core/index.js.map +1 -0
- package/dist/local-auth/core/node.d.ts +5 -0
- package/dist/local-auth/core/node.d.ts.map +1 -0
- package/dist/local-auth/core/node.js +59 -0
- package/dist/local-auth/core/node.js.map +1 -0
- package/dist/local-auth/core/schema/models.d.ts +10 -0
- package/dist/local-auth/core/schema/models.d.ts.map +1 -0
- package/dist/{auth → local-auth}/core/schema/models.js +1 -1
- package/dist/local-auth/core/schema/models.js.map +1 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts +40 -0
- package/dist/local-auth/core/schema/plugin-definition.d.ts.map +1 -0
- package/dist/local-auth/core/schema/plugin-definition.js +27 -0
- package/dist/local-auth/core/schema/plugin-definition.js.map +1 -0
- package/dist/local-auth/core/web.d.ts +6 -0
- package/dist/local-auth/core/web.d.ts.map +1 -0
- package/dist/local-auth/core/web.js +14 -0
- package/dist/local-auth/core/web.js.map +1 -0
- package/dist/local-auth/index.d.ts +2 -0
- package/dist/local-auth/index.d.ts.map +1 -0
- package/dist/local-auth/index.js +2 -0
- package/dist/local-auth/index.js.map +1 -0
- package/dist/{auth/metadata.json → local-auth/plugin.json} +4 -3
- package/dist/local-auth/static/icon.svg +1 -0
- package/dist/placeholder-auth/core/common.d.ts +1 -1
- package/dist/placeholder-auth/core/common.d.ts.map +1 -1
- package/dist/placeholder-auth/core/common.js +6 -10
- package/dist/placeholder-auth/core/common.js.map +1 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.d.ts.map +1 -1
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js +12 -16
- package/dist/placeholder-auth/core/components/placeholder-auth-definition-editor.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts +3 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/index.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts +3 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js +1 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/ts-import-providers.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js +5 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/generated/typed-templates.js.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts +3 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-hooks/placeholder-auth-hooks.generator.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/auth-module.generator.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +4 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/template-renderers.d.ts.map +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts +2 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.d.ts.map +1 -1
- package/dist/placeholder-auth/core/node.d.ts.map +1 -1
- package/dist/placeholder-auth/core/node.js +11 -22
- package/dist/placeholder-auth/core/node.js.map +1 -1
- package/dist/placeholder-auth/core/schema/models.d.ts +2 -1
- package/dist/placeholder-auth/core/schema/models.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/models.js +1 -1
- package/dist/placeholder-auth/core/schema/models.js.map +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts +0 -61
- package/dist/placeholder-auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/placeholder-auth/core/schema/plugin-definition.js +1 -7
- package/dist/placeholder-auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/placeholder-auth/core/web.js +2 -2
- package/dist/placeholder-auth/core/web.js.map +1 -1
- package/dist/placeholder-auth/{metadata.json → plugin.json} +2 -1
- package/dist/web/assets/__federation_expose_auth0CoreCommon-lV5QSzvf.js +49 -0
- package/dist/web/assets/__federation_expose_auth0CoreCommon-lV5QSzvf.js.map +1 -0
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-VnxlQY01.js → __federation_expose_auth0CoreWeb-5F0rTNis.js} +51 -78
- package/dist/web/assets/__federation_expose_auth0CoreWeb-5F0rTNis.js.map +1 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-C5cVmNCH.js +29 -0
- package/dist/web/assets/__federation_expose_authCoreCommon-C5cVmNCH.js.map +1 -0
- package/dist/web/assets/__federation_expose_authCoreWeb-CJxY8hZC.js +439 -0
- package/dist/web/assets/__federation_expose_authCoreWeb-CJxY8hZC.js.map +1 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-Dr_ngV2l.js +32 -0
- package/dist/web/assets/__federation_expose_local-authCoreCommon-Dr_ngV2l.js.map +1 -0
- package/dist/web/assets/{__federation_expose_authCoreWeb-CGWfg0Fb.js → __federation_expose_local-authCoreWeb-B5iBudnh.js} +109 -108
- package/dist/web/assets/__federation_expose_local-authCoreWeb-B5iBudnh.js.map +1 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-l8knzO7I.js +32 -0
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-l8knzO7I.js.map +1 -0
- package/dist/web/assets/{__federation_expose_placeholder-authCoreWeb-BunerD5g.js → __federation_expose_placeholder-authCoreWeb-DbI_bZsk.js} +50 -74
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-DbI_bZsk.js.map +1 -0
- package/dist/web/assets/{__federation_fn_import-BDimcZUI.js → __federation_fn_import-DReOsou_.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-BDimcZUI.js.map → __federation_fn_import-DReOsou_.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-oq9zm9eN.js → web-BlPKO2K7.js} +7 -5
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-oq9zm9eN.js.map → web-BlPKO2K7.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-DqkNAXn3.js → project-builder-lib-CGEZr0YI.js} +470 -814
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-CGEZr0YI.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-BxXhpJ04.js → ui-components-RO_rk4f0.js} +2162 -1954
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-RO_rk4f0.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BbU_EX7_.js +1544 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/utils-BbU_EX7_.js.map +1 -0
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CNTPQj7N.js +6138 -0
- package/dist/web/assets/__federation_shared_@tanstack/react-router-CNTPQj7N.js.map +1 -0
- package/dist/web/assets/__federation_shared_react-CJ2OfFKA.js +8 -0
- package/dist/web/assets/{__federation_shared_react-uocnGSER.js.map → __federation_shared_react-CJ2OfFKA.js.map} +1 -1
- package/dist/web/assets/{__federation_shared_react-dom-Bwq4pLax.js → __federation_shared_react-dom-B4vgf5Ln.js} +3 -2
- package/dist/web/assets/{__federation_shared_react-dom-Bwq4pLax.js.map → __federation_shared_react-dom-B4vgf5Ln.js.map} +1 -1
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js +6 -0
- package/dist/web/assets/_commonjsHelpers-B85MJLTf.js.map +1 -0
- package/dist/web/assets/get-auth-plugin-definition-CQ6mWMZk.js +13 -0
- package/dist/web/assets/get-auth-plugin-definition-CQ6mWMZk.js.map +1 -0
- package/dist/web/assets/{index-D4PxvJ0z.js → index-BkOJzK_m.js} +3 -3
- package/dist/web/assets/{index-D4PxvJ0z.js.map → index-BkOJzK_m.js.map} +1 -1
- package/dist/web/assets/{index-B1hOKVPw.js → index-DUwCgkeV.js} +2 -6
- package/dist/web/assets/{index-B1hOKVPw.js.map → index-DUwCgkeV.js.map} +1 -1
- package/dist/web/assets/{index.esm-qm5h2Bmg.js → index.esm-UnRzlLlr.js} +3 -61
- package/dist/web/assets/index.esm-UnRzlLlr.js.map +1 -0
- package/dist/web/assets/isEqual-DAXqKRba.js +242 -0
- package/dist/web/assets/isEqual-DAXqKRba.js.map +1 -0
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js +60 -0
- package/dist/web/assets/jsx-runtime-XI9uIe3W.js.map +1 -0
- package/dist/web/assets/{model-merger-CA2yaVFd.js → model-merger-BLEOsCIp.js} +46 -334
- package/dist/web/assets/model-merger-BLEOsCIp.js.map +1 -0
- package/dist/web/assets/plugin-definition-C935Xf1h.js +19 -0
- package/dist/web/assets/plugin-definition-C935Xf1h.js.map +1 -0
- package/dist/web/assets/plugin-definition-ChUKIqUg.js +40 -0
- package/dist/web/assets/plugin-definition-ChUKIqUg.js.map +1 -0
- package/dist/web/assets/plugin-definition-DH4QyCfv.js +86 -0
- package/dist/web/assets/plugin-definition-DH4QyCfv.js.map +1 -0
- package/dist/web/assets/plugin-definition-PCHsX2lR.js +19 -0
- package/dist/web/assets/plugin-definition-PCHsX2lR.js.map +1 -0
- package/dist/web/assets/{react-BLL9qrdY.js → react-ecPihYHK.js} +2 -2
- package/dist/web/assets/{react-BLL9qrdY.js.map → react-ecPihYHK.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +18 -12
- package/dist/web/assets/remoteEntry.js.map +1 -1
- package/dist/web/assets/sortBy-BPH_zRB8.js +34 -0
- package/dist/web/assets/sortBy-BPH_zRB8.js.map +1 -0
- package/dist/web/assets/{style-ZUYizAnf.css → style-BhUCMIWI.css} +51 -6
- package/dist/web/assets/styles-I6mpdfRm.js +58 -0
- package/dist/web/assets/styles-I6mpdfRm.js.map +1 -0
- package/dist/web/index.html +1 -1
- package/package.json +17 -16
- package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-apollo/auth-apollo.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-apollo/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-apollo/index.js.map +0 -1
- package/dist/auth/core/generators/auth-apollo/templates/session-error-link.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-apollo/templates/session-error-link.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/auth-email-password.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/index.js +0 -11
- package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts +0 -14
- package/dist/auth/core/generators/auth-email-password/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/index.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/constants/password.constants.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/schema/user-password.mutations.js.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-email-password/templates/module/services/user-password.service.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/auth-hooks.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/index.js +0 -11
- package/dist/auth/core/generators/auth-hooks/generated/index.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts +0 -16
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js +0 -27
- package/dist/auth/core/generators/auth-hooks/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/index.d.ts +0 -2
- package/dist/auth/core/generators/auth-hooks/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/index.js +0 -2
- package/dist/auth/core/generators/auth-hooks/index.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-current-user.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-log-out.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts +0 -8
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js +0 -12
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.js.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-session.ts +0 -16
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.js.map +0 -1
- package/dist/auth/core/generators/auth-module/auth-module.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/auth-module.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/index.js +0 -11
- package/dist/auth/core/generators/auth-module/generated/index.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-module/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/index.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/constants/user-session.constants.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/schema/user-session.queries.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/services/user-session.service.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/cookie-signer.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/session-cookie.js.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-module/templates/module/utils/verify-request-origin.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/auth-routes.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/auth-routes.generator.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/index.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/index.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/index.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts +0 -2
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/login.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts +0 -2
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/register.js.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts +0 -2
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.d.ts.map +0 -1
- package/dist/auth/core/generators/auth-routes/templates/routes/auth_/route.js.map +0 -1
- package/dist/auth/core/generators/index.d.ts.map +0 -1
- package/dist/auth/core/generators/index.js.map +0 -1
- package/dist/auth/core/generators/react-auth/index.d.ts.map +0 -1
- package/dist/auth/core/generators/react-auth/index.js.map +0 -1
- package/dist/auth/core/generators/react-auth/react-auth.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/react-auth/react-auth.generator.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/index.d.ts +0 -74
- package/dist/auth/core/generators/react-session/generated/index.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/index.js +0 -11
- package/dist/auth/core/generators/react-session/generated/index.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-paths.d.ts +0 -16
- package/dist/auth/core/generators/react-session/generated/template-paths.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-paths.js +0 -26
- package/dist/auth/core/generators/react-session/generated/template-paths.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts +0 -27
- package/dist/auth/core/generators/react-session/generated/template-renderers.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/template-renderers.js +0 -49
- package/dist/auth/core/generators/react-session/generated/template-renderers.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts +0 -64
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.js +0 -42
- package/dist/auth/core/generators/react-session/generated/ts-import-providers.js.map +0 -1
- package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts +0 -46
- package/dist/auth/core/generators/react-session/generated/typed-templates.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/generated/typed-templates.js +0 -82
- package/dist/auth/core/generators/react-session/generated/typed-templates.js.map +0 -1
- package/dist/auth/core/generators/react-session/index.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/index.js.map +0 -1
- package/dist/auth/core/generators/react-session/react-session.generator.d.ts +0 -58
- package/dist/auth/core/generators/react-session/react-session.generator.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/react-session.generator.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts +0 -7
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js +0 -25
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-check.tsx +0 -28
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js +0 -18
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/app/user-session-provider.tsx +0 -45
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts +0 -12
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js +0 -15
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.js.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/hooks/use-user-session-client.ts +0 -30
- package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.d.ts.map +0 -1
- package/dist/auth/core/generators/react-session/templates/src/services/user-session-client.js.map +0 -1
- package/dist/auth/core/index.d.ts.map +0 -1
- package/dist/auth/core/index.js.map +0 -1
- package/dist/auth/core/schema/models.d.ts +0 -9
- package/dist/auth/core/schema/models.d.ts.map +0 -1
- package/dist/auth/core/schema/models.js.map +0 -1
- package/dist/auth0/core/components/auth-definition-editor.d.ts +0 -5
- package/dist/auth0/core/components/auth-definition-editor.d.ts.map +0 -1
- package/dist/auth0/core/components/auth-definition-editor.js +0 -61
- package/dist/auth0/core/components/auth-definition-editor.js.map +0 -1
- package/dist/common/compiler/generator-creators.d.ts +0 -18
- package/dist/common/compiler/generator-creators.d.ts.map +0 -1
- package/dist/common/compiler/generator-creators.js +0 -34
- package/dist/common/compiler/generator-creators.js.map +0 -1
- package/dist/common/compiler/index.d.ts +0 -2
- package/dist/common/compiler/index.d.ts.map +0 -1
- package/dist/common/compiler/index.js +0 -2
- package/dist/common/compiler/index.js.map +0 -1
- package/dist/common/index.d.ts +0 -3
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js +0 -3
- package/dist/common/index.js.map +0 -1
- package/dist/common/roles/components/index.d.ts +0 -2
- package/dist/common/roles/components/index.d.ts.map +0 -1
- package/dist/common/roles/components/index.js +0 -2
- package/dist/common/roles/components/index.js.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-dialog.d.ts.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-dialog.js.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts +0 -10
- package/dist/common/roles/components/role-editor-form/role-editor-form.d.ts.map +0 -1
- package/dist/common/roles/components/role-editor-form/role-editor-form.js.map +0 -1
- package/dist/common/roles/constants.d.ts.map +0 -1
- package/dist/common/roles/constants.js.map +0 -1
- package/dist/common/roles/index.d.ts +0 -4
- package/dist/common/roles/index.d.ts.map +0 -1
- package/dist/common/roles/index.js +0 -4
- package/dist/common/roles/index.js.map +0 -1
- package/dist/common/roles/schema.d.ts.map +0 -1
- package/dist/common/roles/schema.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreCommon-BXcKWfCq.js +0 -56
- package/dist/web/assets/__federation_expose_auth0CoreCommon-BXcKWfCq.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreWeb-VnxlQY01.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-LrPwgIpw.js +0 -36
- package/dist/web/assets/__federation_expose_authCoreCommon-LrPwgIpw.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreWeb-CGWfg0Fb.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DCZZPRb7.js +0 -39
- package/dist/web/assets/__federation_expose_placeholder-authCoreCommon-DCZZPRb7.js.map +0 -1
- package/dist/web/assets/__federation_expose_placeholder-authCoreWeb-BunerD5g.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-DqkNAXn3.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/ui-components-BxXhpJ04.js.map +0 -1
- package/dist/web/assets/__federation_shared_react-uocnGSER.js +0 -7
- package/dist/web/assets/index.esm-qm5h2Bmg.js.map +0 -1
- package/dist/web/assets/model-merger-CA2yaVFd.js.map +0 -1
- package/dist/web/assets/plugin-definition-BEHZirWF.js +0 -24
- package/dist/web/assets/plugin-definition-BEHZirWF.js.map +0 -1
- package/dist/web/assets/plugin-definition-CoiivnNt.js +0 -36
- package/dist/web/assets/plugin-definition-CoiivnNt.js.map +0 -1
- package/dist/web/assets/plugin-definition-X0d5-H4U.js +0 -24
- package/dist/web/assets/plugin-definition-X0d5-H4U.js.map +0 -1
- package/dist/web/assets/role-editor-form-lOkPZX7S.js +0 -319
- package/dist/web/assets/role-editor-form-lOkPZX7S.js.map +0 -1
- package/dist/web/assets/styles-B6SRrcui.js +0 -201
- package/dist/web/assets/styles-B6SRrcui.js.map +0 -1
- package/manifest.json +0 -4
- /package/dist/{common → auth/core/schema}/roles/constants.d.ts +0 -0
- /package/dist/{common → auth/core/schema}/roles/constants.js +0 -0
- /package/dist/{common → auth/core/schema}/roles/schema.d.ts +0 -0
- /package/dist/{common → auth/core/schema}/roles/schema.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-apollo/templates/session-error-link.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/constants/password.constants.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/constants/password.constants.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/constants/password.constants.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-email-password/templates/module/schema/user-password.mutations.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-current-user.gql +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-log-out.gql +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-hooks/templates/src/hooks/use-user-id-or-throw.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/constants/user-session.constants.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session-payload.object-type.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/schema/user-session.queries.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/services/user-session.service.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/cookie-signer.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/session-cookie.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-module/templates/module/utils/verify-request-origin.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/auth-routes.generator.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/generated/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-paths.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/generated/template-paths.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/auth-routes/templates/routes/auth_/route.tsx +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-auth/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-auth/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-auth/react-auth.generator.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-session/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-session/index.js +0 -0
- /package/dist/{auth → local-auth}/core/generators/react-session/templates/src/app/user-session-provider.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/index.d.ts +0 -0
- /package/dist/{auth → local-auth}/core/index.js +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TsCodeUtils, tsImportBuilder } from '@baseplate-dev/core-generators';
|
|
2
2
|
import { reactAppConfigProvider } from '@baseplate-dev/react-generators';
|
|
3
3
|
import { createGenerator, createGeneratorTask } from '@baseplate-dev/sync';
|
|
4
4
|
import { z } from 'zod';
|
|
5
|
-
import {
|
|
5
|
+
import { LOCAL_AUTH_CORE_REACT_SESSION_GENERATED as GENERATED_TEMPLATES } from './generated/index.js';
|
|
6
6
|
const descriptorSchema = z.object({});
|
|
7
7
|
/**
|
|
8
8
|
* Generator for React session management
|
|
9
9
|
*/
|
|
10
10
|
export const reactSessionGenerator = createGenerator({
|
|
11
|
-
name: 'auth/core/react-session',
|
|
11
|
+
name: 'local-auth/core/react-session',
|
|
12
12
|
generatorFileUrl: import.meta.url,
|
|
13
13
|
descriptorSchema,
|
|
14
14
|
buildTasks: () => ({
|
|
@@ -25,26 +25,21 @@ export const reactSessionGenerator = createGenerator({
|
|
|
25
25
|
wrap: (contents) => TsCodeUtils.templateWithImports([
|
|
26
26
|
tsImportBuilder(['UserSessionProvider']).from(paths.userSessionProvider),
|
|
27
27
|
]) `<UserSessionProvider>${contents}</UserSessionProvider>`,
|
|
28
|
-
type: '
|
|
28
|
+
type: 'router',
|
|
29
29
|
});
|
|
30
30
|
},
|
|
31
31
|
}),
|
|
32
32
|
main: createGeneratorTask({
|
|
33
33
|
dependencies: {
|
|
34
34
|
renderers: GENERATED_TEMPLATES.renderers.provider,
|
|
35
|
-
paths: GENERATED_TEMPLATES.paths.provider,
|
|
36
35
|
},
|
|
37
|
-
run({ renderers
|
|
36
|
+
run({ renderers }) {
|
|
38
37
|
return {
|
|
39
38
|
build: async (builder) => {
|
|
40
39
|
await builder.apply(renderers.mainGroup.render({
|
|
41
40
|
variables: {},
|
|
42
41
|
}));
|
|
43
|
-
await builder.apply(
|
|
44
|
-
destination: paths.userSessionCheckGql,
|
|
45
|
-
template: GENERATED_TEMPLATES.templates.userSessionCheckGql,
|
|
46
|
-
variables: {},
|
|
47
|
-
}));
|
|
42
|
+
await builder.apply(renderers.userSessionProviderGql.render({}));
|
|
48
43
|
},
|
|
49
44
|
};
|
|
50
45
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"react-session.generator.js","sourceRoot":"","sources":["../../../../../src/local-auth/core/generators/react-session/react-session.generator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,uCAAuC,IAAI,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEtG,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEtC;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,eAAe,CAAC;IACnD,IAAI,EAAE,+BAA+B;IACrC,gBAAgB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG;IACjC,gBAAgB;IAChB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjB,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,IAAI;QACrC,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI;QACzC,SAAS,EAAE,mBAAmB,CAAC,SAAS,CAAC,IAAI;QAC7C,cAAc,EAAE,mBAAmB,CAAC;YAClC,YAAY,EAAE;gBACZ,cAAc,EAAE,sBAAsB;gBACtC,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC,QAAQ;aAC1C;YACD,GAAG,CAAC,EAAE,cAAc,EAAE,KAAK,EAAE;gBAC3B,cAAc,CAAC,cAAc,CAAC,GAAG,CAAC,eAAe,EAAE;oBACjD,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CACjB,WAAW,CAAC,mBAAmB,CAAC;wBAC9B,eAAe,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,IAAI,CAC3C,KAAK,CAAC,mBAAmB,CAC1B;qBACF,CAAC,CAAA,wBAAwB,QAAQ,wBAAwB;oBAC5D,IAAI,EAAE,QAAQ;iBACf,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,SAAS,CAAC,MAAM,CAAC;4BACzB,SAAS,EAAE,EAAE;yBACd,CAAC,CACH,CAAC;wBACF,MAAM,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;oBACnE,CAAC;iBACF,CAAC;YACJ,CAAC;SACF,CAAC;KACH,CAAC;CACH,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-session-provider.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,UAAU,wBAAwB;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,mBAAmB,CAAC,EAClC,QAAQ,GACT,EAAE,wBAAwB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAqD9C"}
|
package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { userSessionClient } from '$userSessionClient';
|
|
3
|
+
import { GetCurrentUserSessionDocument } from '%generatedGraphqlImports';
|
|
4
|
+
import { AuthSessionContext } from '%localAuthHooksImports';
|
|
5
|
+
import { ErrorableLoader } from '%reactComponentsImports';
|
|
6
|
+
import { logError } from '%reactErrorImports';
|
|
7
|
+
import { useApolloClient, useQuery } from '@apollo/client';
|
|
8
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
9
|
+
export function UserSessionProvider({ children, }) {
|
|
10
|
+
const [cachedUserId, setCachedUserId] = useState(userSessionClient.getUserId());
|
|
11
|
+
const apolloClient = useApolloClient();
|
|
12
|
+
const { data: sessionQueryData, error: sessionError } = useQuery(GetCurrentUserSessionDocument, {
|
|
13
|
+
notifyOnNetworkStatusChange: true,
|
|
14
|
+
});
|
|
15
|
+
const session = useMemo(() => {
|
|
16
|
+
if (!sessionQueryData && cachedUserId) {
|
|
17
|
+
// wait for server to fetch before loading session
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
if (!sessionQueryData?.currentUserSession) {
|
|
21
|
+
return {
|
|
22
|
+
userId: undefined,
|
|
23
|
+
isAuthenticated: false,
|
|
24
|
+
roles: ['public'],
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
userId: sessionQueryData.currentUserSession.userId,
|
|
29
|
+
isAuthenticated: true,
|
|
30
|
+
roles: sessionQueryData.currentUserSession.roles,
|
|
31
|
+
};
|
|
32
|
+
}, [sessionQueryData, cachedUserId]);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
const unsubscribe = userSessionClient.onUserIdChange((newUserId) => {
|
|
35
|
+
if (newUserId !== cachedUserId) {
|
|
36
|
+
setCachedUserId(newUserId);
|
|
37
|
+
// Make sure to reset the Apollo client to clear any cached data
|
|
38
|
+
apolloClient.resetStore().catch(logError);
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
return unsubscribe;
|
|
42
|
+
}, [cachedUserId, apolloClient]);
|
|
43
|
+
if (!session) {
|
|
44
|
+
return _jsx(ErrorableLoader, { error: sessionError });
|
|
45
|
+
}
|
|
46
|
+
return (_jsx(AuthSessionContext.Provider, { value: session, children: children }));
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=user-session-provider.js.map
|
package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-session-provider.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAMrD,MAAM,UAAU,mBAAmB,CAAC,EAClC,QAAQ,GACiB;IACzB,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAC9C,iBAAiB,CAAC,SAAS,EAAE,CAC9B,CAAC;IACF,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IAEvC,MAAM,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,QAAQ,CAC9D,6BAA6B,EAC7B;QACE,2BAA2B,EAAE,IAAI;KAClC,CACF,CAAC;IAEF,MAAM,OAAO,GAAG,OAAO,CAAC,GAA4B,EAAE;QACpD,IAAI,CAAC,gBAAgB,IAAI,YAAY,EAAE,CAAC;YACtC,kDAAkD;YAClD,OAAO,SAAS,CAAC;QACnB,CAAC;QACD,IAAI,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;YAC1C,OAAO;gBACL,MAAM,EAAE,SAAS;gBACjB,eAAe,EAAE,KAAK;gBACtB,KAAK,EAAE,CAAC,QAAQ,CAAC;aAClB,CAAC;QACJ,CAAC;QACD,OAAO;YACL,MAAM,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,MAAM;YAClD,eAAe,EAAE,IAAI;YACrB,KAAK,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,KAAK;SACjD,CAAC;IACJ,CAAC,EAAE,CAAC,gBAAgB,EAAE,YAAY,CAAC,CAAC,CAAC;IAErC,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,WAAW,GAAG,iBAAiB,CAAC,cAAc,CAAC,CAAC,SAAS,EAAE,EAAE;YACjE,IAAI,SAAS,KAAK,YAAY,EAAE,CAAC;gBAC/B,eAAe,CAAC,SAAS,CAAC,CAAC;gBAC3B,gEAAgE;gBAChE,YAAY,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YAC5C,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,WAAW,CAAC;IACrB,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC;IAEjC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,KAAC,eAAe,IAAC,KAAK,EAAE,YAAY,GAAI,CAAC;IAClD,CAAC;IAED,OAAO,CACL,KAAC,kBAAkB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO,YACxC,QAAQ,GACmB,CAC/B,CAAC;AACJ,CAAC"}
|
package/dist/local-auth/core/generators/react-session/templates/src/app/user-session-provider.tsx
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
import type { SessionData } from '%authHooksImports';
|
|
4
|
+
import type React from 'react';
|
|
5
|
+
|
|
6
|
+
import { userSessionClient } from '$userSessionClient';
|
|
7
|
+
import { GetCurrentUserSessionDocument } from '%generatedGraphqlImports';
|
|
8
|
+
import { AuthSessionContext } from '%localAuthHooksImports';
|
|
9
|
+
import { ErrorableLoader } from '%reactComponentsImports';
|
|
10
|
+
import { logError } from '%reactErrorImports';
|
|
11
|
+
import { useApolloClient, useQuery } from '@apollo/client';
|
|
12
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
13
|
+
|
|
14
|
+
interface UserSessionProviderProps {
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function UserSessionProvider({
|
|
19
|
+
children,
|
|
20
|
+
}: UserSessionProviderProps): React.JSX.Element {
|
|
21
|
+
const [cachedUserId, setCachedUserId] = useState<string | undefined>(
|
|
22
|
+
userSessionClient.getUserId(),
|
|
23
|
+
);
|
|
24
|
+
const apolloClient = useApolloClient();
|
|
25
|
+
|
|
26
|
+
const { data: sessionQueryData, error: sessionError } = useQuery(
|
|
27
|
+
GetCurrentUserSessionDocument,
|
|
28
|
+
{
|
|
29
|
+
notifyOnNetworkStatusChange: true,
|
|
30
|
+
},
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const session = useMemo((): SessionData | undefined => {
|
|
34
|
+
if (!sessionQueryData && cachedUserId) {
|
|
35
|
+
// wait for server to fetch before loading session
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
if (!sessionQueryData?.currentUserSession) {
|
|
39
|
+
return {
|
|
40
|
+
userId: undefined,
|
|
41
|
+
isAuthenticated: false,
|
|
42
|
+
roles: ['public'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
userId: sessionQueryData.currentUserSession.userId,
|
|
47
|
+
isAuthenticated: true,
|
|
48
|
+
roles: sessionQueryData.currentUserSession.roles,
|
|
49
|
+
};
|
|
50
|
+
}, [sessionQueryData, cachedUserId]);
|
|
51
|
+
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
const unsubscribe = userSessionClient.onUserIdChange((newUserId) => {
|
|
54
|
+
if (newUserId !== cachedUserId) {
|
|
55
|
+
setCachedUserId(newUserId);
|
|
56
|
+
// Make sure to reset the Apollo client to clear any cached data
|
|
57
|
+
apolloClient.resetStore().catch(logError);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
return unsubscribe;
|
|
62
|
+
}, [cachedUserId, apolloClient]);
|
|
63
|
+
|
|
64
|
+
if (!session) {
|
|
65
|
+
return <ErrorableLoader error={sessionError} />;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return (
|
|
69
|
+
<AuthSessionContext.Provider value={session}>
|
|
70
|
+
{children}
|
|
71
|
+
</AuthSessionContext.Provider>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Callback function for user ID change events
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
|
-
userId: string;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Callback function for session change events
|
|
9
|
-
*/
|
|
10
|
-
export type SessionChangeCallback = (session: UserSessionData | undefined) => void;
|
|
11
|
-
/**
|
|
12
|
-
* Configuration options for creating the user session client
|
|
13
|
-
*/
|
|
14
|
-
export interface UserSessionClientConfig {
|
|
15
|
-
/**
|
|
16
|
-
* Optional initial session data
|
|
17
|
-
*/
|
|
18
|
-
initialSession?: UserSessionData;
|
|
19
|
-
}
|
|
4
|
+
type UserIdChangeCallback = (userId: string | undefined) => void;
|
|
20
5
|
/**
|
|
21
6
|
* User session client for managing session persistence using localStorage
|
|
22
7
|
* Handles session state persistence and cross-tab synchronization
|
|
@@ -26,12 +11,7 @@ export declare class UserSessionClient {
|
|
|
26
11
|
private readonly storage;
|
|
27
12
|
private readonly callbacks;
|
|
28
13
|
private cleanupListener?;
|
|
29
|
-
constructor(
|
|
30
|
-
/**
|
|
31
|
-
* Get the current session data
|
|
32
|
-
* @returns Current session information
|
|
33
|
-
*/
|
|
34
|
-
getSession(): UserSessionData | undefined;
|
|
14
|
+
constructor();
|
|
35
15
|
/**
|
|
36
16
|
* Sign in a user with the given user ID
|
|
37
17
|
* @param userId - The user ID to sign in
|
|
@@ -42,11 +22,11 @@ export declare class UserSessionClient {
|
|
|
42
22
|
*/
|
|
43
23
|
signOut(): void;
|
|
44
24
|
/**
|
|
45
|
-
* Subscribe to
|
|
46
|
-
* @param callback - Function to call when
|
|
25
|
+
* Subscribe to user ID changes
|
|
26
|
+
* @param callback - Function to call when user ID changes
|
|
47
27
|
* @returns Cleanup function to unsubscribe
|
|
48
28
|
*/
|
|
49
|
-
|
|
29
|
+
onUserIdChange(callback: UserIdChangeCallback): () => void;
|
|
50
30
|
/**
|
|
51
31
|
* Clean up resources when the client is no longer needed
|
|
52
32
|
*/
|
|
@@ -55,7 +35,7 @@ export declare class UserSessionClient {
|
|
|
55
35
|
* Get the current user ID from storage
|
|
56
36
|
* @returns User ID or null if not authenticated
|
|
57
37
|
*/
|
|
58
|
-
|
|
38
|
+
getUserId(): string | undefined;
|
|
59
39
|
/**
|
|
60
40
|
* Set the user ID in storage
|
|
61
41
|
* @param userId - User ID to store, or null to clear
|
|
@@ -71,9 +51,8 @@ export declare class UserSessionClient {
|
|
|
71
51
|
private notifyCallbacks;
|
|
72
52
|
}
|
|
73
53
|
/**
|
|
74
|
-
*
|
|
75
|
-
* @param config - Optional configuration for the client
|
|
76
|
-
* @returns New UserSessionClient instance
|
|
54
|
+
* Global user session client instance
|
|
77
55
|
*/
|
|
78
|
-
export declare
|
|
56
|
+
export declare const userSessionClient: UserSessionClient;
|
|
57
|
+
export {};
|
|
79
58
|
//# sourceMappingURL=user-session-client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-session-client.d.ts","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,KAAK,oBAAoB,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,KAAK,IAAI,CAAC;AAEjE;;;GAGG;AACH,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,mBAAmB,CAAiB;IAC5D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAyB;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAmC;IAC7D,OAAO,CAAC,eAAe,CAAC,CAAa;;IAOrC;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAK5B;;OAEG;IACH,OAAO,IAAI,IAAI;IAKf;;;;OAIG;IACH,cAAc,CAAC,QAAQ,EAAE,oBAAoB,GAAG,MAAM,IAAI;IAO1D;;OAEG;IACH,OAAO,IAAI,IAAI;IAKf;;;OAGG;IACH,SAAS,IAAI,MAAM,GAAG,SAAS;IAM/B;;;OAGG;IACH,OAAO,CAAC,SAAS;IAejB;;OAEG;IACH,OAAO,CAAC,oBAAoB;IAQ5B;;OAEG;IACH,OAAO,CAAC,eAAe;CAMxB;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,mBAA0B,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { getSafeLocalStorage } from '%reactUtilsImports';
|
|
|
5
5
|
* Handles session state persistence and cross-tab synchronization
|
|
6
6
|
*/
|
|
7
7
|
export class UserSessionClient {
|
|
8
|
-
constructor(
|
|
8
|
+
constructor() {
|
|
9
9
|
Object.defineProperty(this, "storage", {
|
|
10
10
|
enumerable: true,
|
|
11
11
|
configurable: true,
|
|
@@ -26,18 +26,6 @@ export class UserSessionClient {
|
|
|
26
26
|
});
|
|
27
27
|
// Initialize storage listener for cross-tab synchronization
|
|
28
28
|
this.setupStorageListener();
|
|
29
|
-
// Set initial session if provided
|
|
30
|
-
if (config?.initialSession?.userId) {
|
|
31
|
-
this.setUserId(config.initialSession.userId);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Get the current session data
|
|
36
|
-
* @returns Current session information
|
|
37
|
-
*/
|
|
38
|
-
getSession() {
|
|
39
|
-
const userId = this.getUserId();
|
|
40
|
-
return userId ? { userId } : undefined;
|
|
41
29
|
}
|
|
42
30
|
/**
|
|
43
31
|
* Sign in a user with the given user ID
|
|
@@ -55,11 +43,11 @@ export class UserSessionClient {
|
|
|
55
43
|
this.notifyCallbacks();
|
|
56
44
|
}
|
|
57
45
|
/**
|
|
58
|
-
* Subscribe to
|
|
59
|
-
* @param callback - Function to call when
|
|
46
|
+
* Subscribe to user ID changes
|
|
47
|
+
* @param callback - Function to call when user ID changes
|
|
60
48
|
* @returns Cleanup function to unsubscribe
|
|
61
49
|
*/
|
|
62
|
-
|
|
50
|
+
onUserIdChange(callback) {
|
|
63
51
|
this.callbacks.add(callback);
|
|
64
52
|
return () => {
|
|
65
53
|
this.callbacks.delete(callback);
|
|
@@ -77,7 +65,7 @@ export class UserSessionClient {
|
|
|
77
65
|
* @returns User ID or null if not authenticated
|
|
78
66
|
*/
|
|
79
67
|
getUserId() {
|
|
80
|
-
return this.storage.getItem(UserSessionClient.USER_ID_STORAGE_KEY);
|
|
68
|
+
return (this.storage.getItem(UserSessionClient.USER_ID_STORAGE_KEY) ?? undefined);
|
|
81
69
|
}
|
|
82
70
|
/**
|
|
83
71
|
* Set the user ID in storage
|
|
@@ -110,9 +98,9 @@ export class UserSessionClient {
|
|
|
110
98
|
* Notify all registered callbacks of session changes
|
|
111
99
|
*/
|
|
112
100
|
notifyCallbacks() {
|
|
113
|
-
const
|
|
101
|
+
const userId = this.getUserId();
|
|
114
102
|
for (const callback of this.callbacks) {
|
|
115
|
-
callback(
|
|
103
|
+
callback(userId);
|
|
116
104
|
}
|
|
117
105
|
}
|
|
118
106
|
}
|
|
@@ -123,11 +111,7 @@ Object.defineProperty(UserSessionClient, "USER_ID_STORAGE_KEY", {
|
|
|
123
111
|
value: 'APP_USER_ID'
|
|
124
112
|
});
|
|
125
113
|
/**
|
|
126
|
-
*
|
|
127
|
-
* @param config - Optional configuration for the client
|
|
128
|
-
* @returns New UserSessionClient instance
|
|
114
|
+
* Global user session client instance
|
|
129
115
|
*/
|
|
130
|
-
export
|
|
131
|
-
return new UserSessionClient(config);
|
|
132
|
-
}
|
|
116
|
+
export const userSessionClient = new UserSessionClient();
|
|
133
117
|
//# sourceMappingURL=user-session-client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-session-client.js","sourceRoot":"","sources":["../../../../../../../../src/local-auth/core/generators/react-session/templates/src/services/user-session-client.ts"],"names":[],"mappings":"AAAA,cAAc;AAEd,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAOzD;;;GAGG;AACH,MAAM,OAAO,iBAAiB;IAM5B;QAJiB;;;;mBAAU,mBAAmB,EAAE;WAAC;QAChC;;;;mBAAY,IAAI,GAAG,EAAwB;WAAC;QACrD;;;;;WAA6B;QAGnC,4DAA4D;QAC5D,IAAI,CAAC,oBAAoB,EAAE,CAAC;IAC9B,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,MAAc;QACnB,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACvB,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IAED;;;;OAIG;IACH,cAAc,CAAC,QAA8B;QAC3C,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAC7B,OAAO,GAAG,EAAE;YACV,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClC,CAAC,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,OAAO;QACL,IAAI,CAAC,eAAe,EAAE,EAAE,CAAC;QACzB,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC;IACzB,CAAC;IAED;;;OAGG;IACH,SAAS;QACP,OAAO,CACL,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,SAAS,CACzE,CAAC;IACJ,CAAC;IAED;;;OAGG;IACK,SAAS,CAAC,MAAqB;QACrC,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QACvC,MAAM,aAAa,GAAG,MAAM,KAAK,aAAa,CAAC;QAE/C,IAAI,CAAC,aAAa,EAAE,CAAC;YACnB,OAAO;QACT,CAAC;QAED,IAAI,MAAM,EAAE,CAAC;YACX,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;QACtE,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;QACjE,CAAC;IACH,CAAC;IAED;;OAEG;IACK,oBAAoB;QAC1B,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,GAAG,EAAE,EAAE;YAC3D,IAAI,GAAG,KAAK,iBAAiB,CAAC,mBAAmB,EAAE,CAAC;gBAClD,IAAI,CAAC,eAAe,EAAE,CAAC;YACzB,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACK,eAAe;QACrB,MAAM,MAAM,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC;QAChC,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,SAAS,EAAE,CAAC;YACtC,QAAQ,CAAC,MAAM,CAAC,CAAC;QACnB,CAAC;IACH,CAAC;;AA/FuB;;;;WAAsB,aAAa;EAAhB,CAAiB;AAkG9D;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,iBAAiB,EAAE,CAAC"}
|
|
@@ -3,28 +3,9 @@
|
|
|
3
3
|
import { getSafeLocalStorage } from '%reactUtilsImports';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Callback function for user ID change events
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
|
-
userId: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Callback function for session change events
|
|
14
|
-
*/
|
|
15
|
-
export type SessionChangeCallback = (
|
|
16
|
-
session: UserSessionData | undefined,
|
|
17
|
-
) => void;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Configuration options for creating the user session client
|
|
21
|
-
*/
|
|
22
|
-
export interface UserSessionClientConfig {
|
|
23
|
-
/**
|
|
24
|
-
* Optional initial session data
|
|
25
|
-
*/
|
|
26
|
-
initialSession?: UserSessionData;
|
|
27
|
-
}
|
|
8
|
+
type UserIdChangeCallback = (userId: string | undefined) => void;
|
|
28
9
|
|
|
29
10
|
/**
|
|
30
11
|
* User session client for managing session persistence using localStorage
|
|
@@ -33,26 +14,12 @@ export interface UserSessionClientConfig {
|
|
|
33
14
|
export class UserSessionClient {
|
|
34
15
|
private static readonly USER_ID_STORAGE_KEY = 'APP_USER_ID';
|
|
35
16
|
private readonly storage = getSafeLocalStorage();
|
|
36
|
-
private readonly callbacks = new Set<
|
|
17
|
+
private readonly callbacks = new Set<UserIdChangeCallback>();
|
|
37
18
|
private cleanupListener?: () => void;
|
|
38
19
|
|
|
39
|
-
constructor(
|
|
20
|
+
constructor() {
|
|
40
21
|
// Initialize storage listener for cross-tab synchronization
|
|
41
22
|
this.setupStorageListener();
|
|
42
|
-
|
|
43
|
-
// Set initial session if provided
|
|
44
|
-
if (config?.initialSession?.userId) {
|
|
45
|
-
this.setUserId(config.initialSession.userId);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Get the current session data
|
|
51
|
-
* @returns Current session information
|
|
52
|
-
*/
|
|
53
|
-
getSession(): UserSessionData | undefined {
|
|
54
|
-
const userId = this.getUserId();
|
|
55
|
-
return userId ? { userId } : undefined;
|
|
56
23
|
}
|
|
57
24
|
|
|
58
25
|
/**
|
|
@@ -73,11 +40,11 @@ export class UserSessionClient {
|
|
|
73
40
|
}
|
|
74
41
|
|
|
75
42
|
/**
|
|
76
|
-
* Subscribe to
|
|
77
|
-
* @param callback - Function to call when
|
|
43
|
+
* Subscribe to user ID changes
|
|
44
|
+
* @param callback - Function to call when user ID changes
|
|
78
45
|
* @returns Cleanup function to unsubscribe
|
|
79
46
|
*/
|
|
80
|
-
|
|
47
|
+
onUserIdChange(callback: UserIdChangeCallback): () => void {
|
|
81
48
|
this.callbacks.add(callback);
|
|
82
49
|
return () => {
|
|
83
50
|
this.callbacks.delete(callback);
|
|
@@ -96,8 +63,10 @@ export class UserSessionClient {
|
|
|
96
63
|
* Get the current user ID from storage
|
|
97
64
|
* @returns User ID or null if not authenticated
|
|
98
65
|
*/
|
|
99
|
-
|
|
100
|
-
return
|
|
66
|
+
getUserId(): string | undefined {
|
|
67
|
+
return (
|
|
68
|
+
this.storage.getItem(UserSessionClient.USER_ID_STORAGE_KEY) ?? undefined
|
|
69
|
+
);
|
|
101
70
|
}
|
|
102
71
|
|
|
103
72
|
/**
|
|
@@ -134,20 +103,14 @@ export class UserSessionClient {
|
|
|
134
103
|
* Notify all registered callbacks of session changes
|
|
135
104
|
*/
|
|
136
105
|
private notifyCallbacks(): void {
|
|
137
|
-
const
|
|
106
|
+
const userId = this.getUserId();
|
|
138
107
|
for (const callback of this.callbacks) {
|
|
139
|
-
callback(
|
|
108
|
+
callback(userId);
|
|
140
109
|
}
|
|
141
110
|
}
|
|
142
111
|
}
|
|
143
112
|
|
|
144
113
|
/**
|
|
145
|
-
*
|
|
146
|
-
* @param config - Optional configuration for the client
|
|
147
|
-
* @returns New UserSessionClient instance
|
|
114
|
+
* Global user session client instance
|
|
148
115
|
*/
|
|
149
|
-
export
|
|
150
|
-
config?: UserSessionClientConfig,
|
|
151
|
-
): UserSessionClient {
|
|
152
|
-
return new UserSessionClient(config);
|
|
153
|
-
}
|
|
116
|
+
export const userSessionClient = new UserSessionClient();
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
export declare const LOCAL_AUTH_CORE_SEED_INITIAL_USER_GENERATED: {
|
|
2
|
+
imports: {
|
|
3
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
4
|
+
seedInitialUserImports: import("@baseplate-dev/sync").ProviderExport<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
5
|
+
seedInitialUser: {};
|
|
6
|
+
}>>;
|
|
7
|
+
}, {
|
|
8
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreSeedInitialUserPaths>;
|
|
9
|
+
}, undefined>;
|
|
10
|
+
};
|
|
11
|
+
paths: {
|
|
12
|
+
provider: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreSeedInitialUserPaths>;
|
|
13
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
14
|
+
localAuthCoreSeedInitialUserPaths: import("@baseplate-dev/sync").ProviderExport<import("./template-paths.js").LocalAuthCoreSeedInitialUserPaths>;
|
|
15
|
+
}, {
|
|
16
|
+
packageInfo: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").PackageInfoProvider>;
|
|
17
|
+
}, undefined>;
|
|
18
|
+
};
|
|
19
|
+
renderers: {
|
|
20
|
+
provider: import("@baseplate-dev/sync").ProviderType<import("./template-renderers.js").LocalAuthCoreSeedInitialUserRenderers>;
|
|
21
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
22
|
+
localAuthCoreSeedInitialUserRenderers: import("@baseplate-dev/sync").ProviderExport<import("./template-renderers.js").LocalAuthCoreSeedInitialUserRenderers>;
|
|
23
|
+
}, {
|
|
24
|
+
authEmailPasswordImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
25
|
+
authenticateUserWithEmailAndPassword: {};
|
|
26
|
+
createUserWithEmailAndPassword: {};
|
|
27
|
+
PASSWORD_MIN_LENGTH: {};
|
|
28
|
+
registerUserWithEmailAndPassword: {};
|
|
29
|
+
}>>;
|
|
30
|
+
authRolesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
31
|
+
AUTH_ROLE_CONFIG: {};
|
|
32
|
+
AuthRole: {
|
|
33
|
+
isTypeOnly: true;
|
|
34
|
+
};
|
|
35
|
+
DEFAULT_PUBLIC_ROLES: {};
|
|
36
|
+
DEFAULT_USER_ROLES: {};
|
|
37
|
+
RoleConfig: {
|
|
38
|
+
isTypeOnly: true;
|
|
39
|
+
};
|
|
40
|
+
}>>;
|
|
41
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreSeedInitialUserPaths>;
|
|
42
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
43
|
+
prisma: {};
|
|
44
|
+
}>>;
|
|
45
|
+
typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
|
|
46
|
+
}, undefined>;
|
|
47
|
+
};
|
|
48
|
+
templates: {
|
|
49
|
+
seedInitialUser: import("@baseplate-dev/core-generators").TsTemplateFile<{
|
|
50
|
+
TPL_INITIAL_USER_ROLES: {};
|
|
51
|
+
}, {
|
|
52
|
+
authEmailPasswordImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
53
|
+
authenticateUserWithEmailAndPassword: {};
|
|
54
|
+
createUserWithEmailAndPassword: {};
|
|
55
|
+
PASSWORD_MIN_LENGTH: {};
|
|
56
|
+
registerUserWithEmailAndPassword: {};
|
|
57
|
+
}>>;
|
|
58
|
+
authRolesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
59
|
+
AUTH_ROLE_CONFIG: {};
|
|
60
|
+
AuthRole: {
|
|
61
|
+
isTypeOnly: true;
|
|
62
|
+
};
|
|
63
|
+
DEFAULT_PUBLIC_ROLES: {};
|
|
64
|
+
DEFAULT_USER_ROLES: {};
|
|
65
|
+
RoleConfig: {
|
|
66
|
+
isTypeOnly: true;
|
|
67
|
+
};
|
|
68
|
+
}>>;
|
|
69
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
70
|
+
prisma: {};
|
|
71
|
+
}>>;
|
|
72
|
+
}, Record<never, Record<never, never>>>;
|
|
73
|
+
};
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKvD,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LOCAL_AUTH_CORE_SEED_INITIAL_USER_PATHS } from './template-paths.js';
|
|
2
|
+
import { LOCAL_AUTH_CORE_SEED_INITIAL_USER_RENDERERS } from './template-renderers.js';
|
|
3
|
+
import { LOCAL_AUTH_CORE_SEED_INITIAL_USER_IMPORTS } from './ts-import-providers.js';
|
|
4
|
+
import { LOCAL_AUTH_CORE_SEED_INITIAL_USER_TEMPLATES } from './typed-templates.js';
|
|
5
|
+
export const LOCAL_AUTH_CORE_SEED_INITIAL_USER_GENERATED = {
|
|
6
|
+
imports: LOCAL_AUTH_CORE_SEED_INITIAL_USER_IMPORTS,
|
|
7
|
+
paths: LOCAL_AUTH_CORE_SEED_INITIAL_USER_PATHS,
|
|
8
|
+
renderers: LOCAL_AUTH_CORE_SEED_INITIAL_USER_RENDERERS,
|
|
9
|
+
templates: LOCAL_AUTH_CORE_SEED_INITIAL_USER_TEMPLATES,
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/seed-initial-user/generated/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,2CAA2C,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,EAAE,yCAAyC,EAAE,MAAM,0BAA0B,CAAC;AACrF,OAAO,EAAE,2CAA2C,EAAE,MAAM,sBAAsB,CAAC;AAEnF,MAAM,CAAC,MAAM,2CAA2C,GAAG;IACzD,OAAO,EAAE,yCAAyC;IAClD,KAAK,EAAE,uCAAuC;IAC9C,SAAS,EAAE,2CAA2C;IACtD,SAAS,EAAE,2CAA2C;CACvD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface LocalAuthCoreSeedInitialUserPaths {
|
|
2
|
+
seedInitialUser: string;
|
|
3
|
+
}
|
|
4
|
+
export declare const LOCAL_AUTH_CORE_SEED_INITIAL_USER_PATHS: {
|
|
5
|
+
provider: import("@baseplate-dev/sync").ProviderType<LocalAuthCoreSeedInitialUserPaths>;
|
|
6
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
7
|
+
localAuthCoreSeedInitialUserPaths: import("@baseplate-dev/sync").ProviderExport<LocalAuthCoreSeedInitialUserPaths>;
|
|
8
|
+
}, {
|
|
9
|
+
packageInfo: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").PackageInfoProvider>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=template-paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-paths.d.ts","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/seed-initial-user/generated/template-paths.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,iCAAiC;IAChD,eAAe,EAAE,MAAM,CAAC;CACzB;AA0BD,eAAO,MAAM,uCAAuC;;;;;;;CAGnD,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { packageInfoProvider } from '@baseplate-dev/core-generators';
|
|
2
|
+
import { createGeneratorTask, createProviderType } from '@baseplate-dev/sync';
|
|
3
|
+
const localAuthCoreSeedInitialUserPaths = createProviderType('local-auth-core-seed-initial-user-paths');
|
|
4
|
+
const localAuthCoreSeedInitialUserPathsTask = createGeneratorTask({
|
|
5
|
+
dependencies: { packageInfo: packageInfoProvider },
|
|
6
|
+
exports: {
|
|
7
|
+
localAuthCoreSeedInitialUserPaths: localAuthCoreSeedInitialUserPaths.export(),
|
|
8
|
+
},
|
|
9
|
+
run({ packageInfo }) {
|
|
10
|
+
const srcRoot = packageInfo.getPackageSrcPath();
|
|
11
|
+
return {
|
|
12
|
+
providers: {
|
|
13
|
+
localAuthCoreSeedInitialUserPaths: {
|
|
14
|
+
seedInitialUser: `${srcRoot}/prisma/seed-initial-user.ts`,
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
},
|
|
19
|
+
});
|
|
20
|
+
export const LOCAL_AUTH_CORE_SEED_INITIAL_USER_PATHS = {
|
|
21
|
+
provider: localAuthCoreSeedInitialUserPaths,
|
|
22
|
+
task: localAuthCoreSeedInitialUserPathsTask,
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=template-paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-paths.js","sourceRoot":"","sources":["../../../../../../src/local-auth/core/generators/seed-initial-user/generated/template-paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAM9E,MAAM,iCAAiC,GACrC,kBAAkB,CAChB,yCAAyC,CAC1C,CAAC;AAEJ,MAAM,qCAAqC,GAAG,mBAAmB,CAAC;IAChE,YAAY,EAAE,EAAE,WAAW,EAAE,mBAAmB,EAAE;IAClD,OAAO,EAAE;QACP,iCAAiC,EAC/B,iCAAiC,CAAC,MAAM,EAAE;KAC7C;IACD,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,MAAM,OAAO,GAAG,WAAW,CAAC,iBAAiB,EAAE,CAAC;QAEhD,OAAO;YACL,SAAS,EAAE;gBACT,iCAAiC,EAAE;oBACjC,eAAe,EAAE,GAAG,OAAO,8BAA8B;iBAC1D;aACF;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,uCAAuC,GAAG;IACrD,QAAQ,EAAE,iCAAiC;IAC3C,IAAI,EAAE,qCAAqC;CAC5C,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { RenderTsTemplateFileActionInput } from '@baseplate-dev/core-generators';
|
|
2
|
+
import type { BuilderAction } from '@baseplate-dev/sync';
|
|
3
|
+
import { LOCAL_AUTH_CORE_SEED_INITIAL_USER_TEMPLATES } from './typed-templates.js';
|
|
4
|
+
export interface LocalAuthCoreSeedInitialUserRenderers {
|
|
5
|
+
seedInitialUser: {
|
|
6
|
+
render: (options: Omit<RenderTsTemplateFileActionInput<typeof LOCAL_AUTH_CORE_SEED_INITIAL_USER_TEMPLATES.seedInitialUser>, 'destination' | 'importMapProviders' | 'template' | 'generatorPaths'>) => BuilderAction;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const LOCAL_AUTH_CORE_SEED_INITIAL_USER_RENDERERS: {
|
|
10
|
+
provider: import("@baseplate-dev/sync").ProviderType<LocalAuthCoreSeedInitialUserRenderers>;
|
|
11
|
+
task: import("@baseplate-dev/sync").GeneratorTask<{
|
|
12
|
+
localAuthCoreSeedInitialUserRenderers: import("@baseplate-dev/sync").ProviderExport<LocalAuthCoreSeedInitialUserRenderers>;
|
|
13
|
+
}, {
|
|
14
|
+
authEmailPasswordImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
15
|
+
authenticateUserWithEmailAndPassword: {};
|
|
16
|
+
createUserWithEmailAndPassword: {};
|
|
17
|
+
PASSWORD_MIN_LENGTH: {};
|
|
18
|
+
registerUserWithEmailAndPassword: {};
|
|
19
|
+
}>>;
|
|
20
|
+
authRolesImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
21
|
+
AUTH_ROLE_CONFIG: {};
|
|
22
|
+
AuthRole: {
|
|
23
|
+
isTypeOnly: true;
|
|
24
|
+
};
|
|
25
|
+
DEFAULT_PUBLIC_ROLES: {};
|
|
26
|
+
DEFAULT_USER_ROLES: {};
|
|
27
|
+
RoleConfig: {
|
|
28
|
+
isTypeOnly: true;
|
|
29
|
+
};
|
|
30
|
+
}>>;
|
|
31
|
+
paths: import("@baseplate-dev/sync").ProviderType<import("./template-paths.js").LocalAuthCoreSeedInitialUserPaths>;
|
|
32
|
+
prismaImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
33
|
+
prisma: {};
|
|
34
|
+
}>>;
|
|
35
|
+
typescriptFile: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").TypescriptFileProvider>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=template-renderers.d.ts.map
|