@baseplate-dev/plugin-auth 0.6.11 → 0.6.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +40 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -0
- package/dist/better-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -0
- package/dist/better-auth/constants/packages.d.ts +1 -1
- package/dist/better-auth/constants/packages.js +1 -1
- package/dist/better-auth/generators/fastify/better-auth-admin-module/better-auth-admin-module.generator.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/index.d.ts +2 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/template-renderers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-admin-module/generated/typed-templates.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/better-auth-email-templates.generator.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/index.d.ts +4 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/template-renderers.d.ts +1 -0
- package/dist/better-auth/generators/fastify/better-auth-email-templates/generated/typed-templates.d.ts +3 -0
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.d.ts +43 -6
- package/dist/better-auth/generators/fastify/better-auth-module/better-auth-module.generator.js +21 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/index.d.ts +46 -10
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.d.ts +18 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/template-renderers.js +6 -2
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.d.ts +24 -6
- package/dist/better-auth/generators/fastify/better-auth-module/generated/ts-import-providers.js +8 -5
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.d.ts +20 -4
- package/dist/better-auth/generators/fastify/better-auth-module/generated/typed-templates.js +10 -5
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/plugins/better-auth.plugin.ts +7 -4
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/auth.ts +76 -59
- package/dist/better-auth/generators/fastify/better-auth-module/templates/module/services/user-session.service.ts +58 -46
- package/dist/better-auth/generators/react/better-auth-pages/better-auth-pages.generator.d.ts +7 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/index.d.ts +42 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/generators/react/better-auth-pages/generated/typed-templates.d.ts +70 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/index.d.ts +14 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/template-renderers.d.ts +7 -0
- package/dist/better-auth/generators/react/react-better-auth/generated/typed-templates.d.ts +7 -0
- package/dist/better-auth/generators/react/react-better-auth/react-better-auth.generator.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/admin-crud-manage-roles-action.generator.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/index.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/template-renderers.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-manage-roles-action/generated/typed-templates.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/admin-crud-reset-password-action.generator.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/index.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/template-renderers.d.ts +7 -0
- package/dist/local-auth/admin/generators/admin-crud-reset-password-action/generated/typed-templates.d.ts +14 -0
- package/dist/local-auth/admin/generators/admin-crud-roles-column/admin-crud-roles-column.generator.d.ts +7 -0
- package/dist/local-auth/core/generators/auth-email-password/auth-email-password.generator.d.ts +7 -23
- package/dist/local-auth/core/generators/auth-email-password/generated/index.d.ts +29 -66
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.d.ts +7 -23
- package/dist/local-auth/core/generators/auth-email-password/generated/template-renderers.js +2 -8
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.d.ts +37 -66
- package/dist/local-auth/core/generators/auth-email-password/generated/typed-templates.js +5 -6
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.d.ts +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.js +2 -2
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/email-verification.service.ts +8 -4
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.d.ts +3 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.js +4 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/password-reset.service.ts +9 -6
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.js +2 -3
- package/dist/local-auth/core/generators/auth-email-password/templates/module/services/user-password.service.ts +5 -3
- package/dist/local-auth/core/generators/auth-email-templates/auth-email-templates.generator.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/index.d.ts +4 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/template-renderers.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-email-templates/generated/typed-templates.d.ts +3 -0
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.d.ts +62 -8
- package/dist/local-auth/core/generators/auth-module/auth-module.generator.js +21 -11
- package/dist/local-auth/core/generators/auth-module/generated/index.d.ts +152 -10
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.d.ts +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-paths.js +1 -0
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.d.ts +52 -2
- package/dist/local-auth/core/generators/auth-module/generated/template-renderers.js +14 -4
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.d.ts +9 -3
- package/dist/local-auth/core/generators/auth-module/generated/ts-import-providers.js +6 -3
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.d.ts +102 -8
- package/dist/local-auth/core/generators/auth-module/generated/typed-templates.js +19 -5
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.d.ts +0 -4
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.js +2 -15
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.queue.ts +2 -16
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.d.ts +6 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.js +18 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/queues/cleanup-auth-verification.worker.ts +22 -0
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.js +1 -2
- package/dist/local-auth/core/generators/auth-module/templates/module/schema/user-session.mutations.ts +4 -2
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.d.ts +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.js +0 -1
- package/dist/local-auth/core/generators/auth-module/templates/module/services/user-session.service.ts +0 -2
- package/dist/local-auth/core/generators/auth-routes/auth-routes.generator.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-routes/generated/index.d.ts +52 -0
- package/dist/local-auth/core/generators/auth-routes/generated/template-renderers.d.ts +9 -0
- package/dist/local-auth/core/generators/auth-routes/generated/typed-templates.d.ts +77 -0
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/login.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/register.tsx +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js +2 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx +2 -2
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.js +1 -1
- package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/verify-email.tsx +1 -1
- package/dist/local-auth/core/generators/react-session/generated/index.d.ts +14 -0
- package/dist/local-auth/core/generators/react-session/generated/template-renderers.d.ts +7 -0
- package/dist/local-auth/core/generators/react-session/generated/typed-templates.d.ts +14 -0
- package/dist/local-auth/core/generators/react-session/react-session.generator.d.ts +7 -0
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/index.d.ts +2 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.d.ts +10 -2
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/ts-import-providers.js +8 -5
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/generated/typed-templates.js +1 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.d.ts +3 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/index.js +2 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/{auth-module.generator.d.ts → placeholder-auth-module.generator.d.ts} +20 -3
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/{auth-module.generator.js → placeholder-auth-module.generator.js} +16 -1
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.d.ts +5 -21
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.js +17 -26
- package/dist/placeholder-auth/core/generators/placeholder-auth-module/templates/module/services/user-session.service.ts +21 -31
- package/dist/web/assets/{_virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-DEljr3MS.js → _virtual_mf-localSharedImportMap___mfe_internal__plugin_mf_2_auth-DxRuC5lD.js} +89 -73
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-B6a7L2-k.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib__loadShare__.js-Dbjihoi-.js} +50 -13
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-JKpdJ1L0.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_project_mf_2_builder_mf_2_lib_mf_1_web__loadShare__.js-CpEOtTmq.js} +50 -14
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-DsLoA9K7.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_baseplate_mf_2_dev_mf_1_ui_mf_2_components__loadShare__.js-BTSgZGcl.js} +6932 -6106
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CGsbw2Lx.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare___mf_0_tanstack_mf_1_react_mf_2_router__loadShare__.js-CJ027_El.js} +72 -151
- package/dist/web/assets/{_virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-DE4UUe5K.js → _virtual_mf___mfe_internal__plugin_mf_2_auth__loadShare__zod__loadShare__.js-Do-7VDVw.js} +30 -247
- package/dist/web/assets/auth-gRzmaSZc.js +1 -0
- package/dist/web/assets/{common-CTWnBc6I.js → common-B4cD6OfF.js} +6 -6
- package/dist/web/assets/{common-g_Gn0v5J.js → common-B9LNVIXT.js} +4 -4
- package/dist/web/assets/{common-kfSP8YQO.js → common-B9sZoKR5.js} +6 -6
- package/dist/web/assets/{common-CzNLnT_1.js → common-DF9FD3lJ.js} +4 -4
- package/dist/web/assets/{common-zfktVQvk.js → common-S36tY-P3.js} +3 -3
- package/dist/web/assets/{common-B3OG-gju.js → common-sMUs9FmV.js} +3 -3
- package/dist/web/assets/{dist-C6kDPCTC.js → dist-CtqdAorB.js} +376 -256
- package/dist/web/assets/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-Bt9-dftr.js → dist-SBfmsOB2.js} +43 -359
- package/dist/web/assets/{get-auth-plugin-definition-2vFJROjB.js → get-auth-plugin-definition-Bs9C6JrS.js} +2 -2
- package/dist/web/assets/hostInit-BtfjN9sB.js +99 -0
- package/dist/web/assets/{index-Cr47LBtj.js → index-DVCa_MuH.js} +2 -2
- package/dist/web/assets/{mf-entry-bootstrap-0-13480d2a.js → mf-entry-bootstrap-0-31a63adb.js} +5 -2
- package/dist/web/assets/{model-utils-ZF_FVZ_o.js → model-utils-BDM6ILfO.js} +43 -15
- package/dist/web/assets/{models-DPPMgQz_.js → models-1c2urnle.js} +3 -3
- package/dist/web/assets/{models-CORL4i-6.js → models-DGhhwO8Q.js} +3 -3
- package/dist/web/assets/{plugin-definition-UAfMRa7u.js → plugin-definition-B-HRncfN.js} +3 -3
- package/dist/web/assets/{plugin-definition-mNNM2hOB.js → plugin-definition-Dluw2inU.js} +3 -3
- package/dist/web/assets/{styles-DNVWarsT.js → styles-BTmSBHAy.js} +15 -12
- package/dist/web/assets/{virtualExposes-CZsMFYa2.js → virtualExposes-C1o-SyCQ.js} +1 -1
- package/dist/web/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__plugin-auth__remoteEntry_js-Bs76by83.js +259 -0
- package/dist/web/assets/{virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-DC8YPV1Z.js → virtual_mf-exposes-ssr___mfe_internal__plugin-auth__remoteEntry_js-B5SkIaaz.js} +13 -13
- package/dist/web/assets/{virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-CmilMd0E.js → virtual_mf-exposes___mfe_internal__plugin-auth__remoteEntry_js-DotA2McS.js} +50 -15
- package/dist/web/assets/{web-CNMEeTj-.js → web-B2REeIGU.js} +3 -3
- package/dist/web/assets/{web-BldKZtQd.js → web-BEOhczx1.js} +16 -16
- package/dist/web/assets/{web-y8E7eNgy.js → web-Bh_3N1sv.js} +17 -17
- package/dist/web/assets/{web-DiGj_0d0.js → web-CiuxQhgn.js} +20 -20
- package/dist/web/assets/{web-OntIhIfe.js → web-DGv5-Arz.js} +35 -35
- package/dist/web/assets/{web-BbqWFVPH.js → web-jcCkQISW.js} +31 -18
- package/dist/web/assets/{web-CnsQCdFE.js → web-wBaHshVG.js} +3 -3
- package/dist/web/index.html +2 -2
- package/dist/web/remoteEntry.js +1 -1
- package/dist/web/remoteEntry.ssr.js +1 -1
- package/package.json +26 -26
- package/dist/web/assets/auth-YjeUffyx.js +0 -1
- package/dist/web/assets/hostInit-35H-qR11.js +0 -119
|
@@ -1,17 +1,4 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Periodic queue to clean up expired auth verification tokens.
|
|
6
|
-
* Runs hourly to maintain database hygiene.
|
|
7
|
-
*/
|
|
8
|
-
export const cleanupAuthVerificationQueue = createQueue('cleanup-auth-verification', {
|
|
9
|
-
handler: async () => {
|
|
10
|
-
const result = await cleanupExpiredAuthVerifications();
|
|
11
|
-
return { deletedCount: result.deletedCount };
|
|
12
|
-
},
|
|
13
|
-
repeatable: {
|
|
14
|
-
pattern: '15 * * * *', // Every hour at minute 15
|
|
15
|
-
},
|
|
16
|
-
});
|
|
2
|
+
import { defineQueue } from '%queuesImports';
|
|
3
|
+
export const cleanupAuthVerificationQueue = defineQueue('cleanup-auth-verification');
|
|
17
4
|
//# sourceMappingURL=cleanup-auth-verification.queue.js.map
|
|
@@ -1,21 +1,7 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { createQueue } from '%queueServiceImports';
|
|
3
|
+
import { defineQueue } from '%queuesImports';
|
|
5
4
|
|
|
6
|
-
|
|
7
|
-
* Periodic queue to clean up expired auth verification tokens.
|
|
8
|
-
* Runs hourly to maintain database hygiene.
|
|
9
|
-
*/
|
|
10
|
-
export const cleanupAuthVerificationQueue = createQueue(
|
|
5
|
+
export const cleanupAuthVerificationQueue = defineQueue<undefined>(
|
|
11
6
|
'cleanup-auth-verification',
|
|
12
|
-
{
|
|
13
|
-
handler: async () => {
|
|
14
|
-
const result = await cleanupExpiredAuthVerifications();
|
|
15
|
-
return { deletedCount: result.deletedCount };
|
|
16
|
-
},
|
|
17
|
-
repeatable: {
|
|
18
|
-
pattern: '15 * * * *', // Every hour at minute 15
|
|
19
|
-
},
|
|
20
|
-
},
|
|
21
7
|
);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { cleanupAuthVerificationQueue } from '$queuesCleanupAuthVerification';
|
|
3
|
+
import { cleanupExpiredAuthVerifications } from '$servicesAuthVerification';
|
|
4
|
+
import { bindQueueHandler } from '%queuesImports';
|
|
5
|
+
/**
|
|
6
|
+
* Periodic worker to clean up expired auth verification tokens.
|
|
7
|
+
* Runs hourly to maintain database hygiene.
|
|
8
|
+
*/
|
|
9
|
+
export const cleanupAuthVerificationWorker = bindQueueHandler(cleanupAuthVerificationQueue, {
|
|
10
|
+
handler: async () => {
|
|
11
|
+
const result = await cleanupExpiredAuthVerifications();
|
|
12
|
+
return { deletedCount: result.deletedCount };
|
|
13
|
+
},
|
|
14
|
+
repeatable: {
|
|
15
|
+
pattern: '15 * * * *', // Every hour at minute 15
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
//# sourceMappingURL=cleanup-auth-verification.worker.js.map
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
import { cleanupAuthVerificationQueue } from '$queuesCleanupAuthVerification';
|
|
4
|
+
import { cleanupExpiredAuthVerifications } from '$servicesAuthVerification';
|
|
5
|
+
import { bindQueueHandler } from '%queuesImports';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Periodic worker to clean up expired auth verification tokens.
|
|
9
|
+
* Runs hourly to maintain database hygiene.
|
|
10
|
+
*/
|
|
11
|
+
export const cleanupAuthVerificationWorker = bindQueueHandler(
|
|
12
|
+
cleanupAuthVerificationQueue,
|
|
13
|
+
{
|
|
14
|
+
handler: async () => {
|
|
15
|
+
const result = await cleanupExpiredAuthVerifications();
|
|
16
|
+
return { deletedCount: result.deletedCount };
|
|
17
|
+
},
|
|
18
|
+
repeatable: {
|
|
19
|
+
pattern: '15 * * * *', // Every hour at minute 15
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
import { userSessionService } from '$userSessionService';
|
|
3
2
|
import { builder } from '%pothosImports';
|
|
4
3
|
builder.mutationField('logOut', (t) => t.fieldWithInputPayload({
|
|
5
4
|
authorize: ['public'],
|
|
@@ -10,7 +9,7 @@ builder.mutationField('logOut', (t) => t.fieldWithInputPayload({
|
|
|
10
9
|
},
|
|
11
10
|
resolve: async (parent, args, context) => {
|
|
12
11
|
if (context.auth.session?.type === 'user') {
|
|
13
|
-
await
|
|
12
|
+
await context.services.userSession.clearSession(context.auth.session, context);
|
|
14
13
|
}
|
|
15
14
|
return { success: true };
|
|
16
15
|
},
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
|
-
import { userSessionService } from '$userSessionService';
|
|
4
3
|
import { builder } from '%pothosImports';
|
|
5
4
|
|
|
6
5
|
builder.mutationField('logOut', (t) =>
|
|
@@ -13,7 +12,10 @@ builder.mutationField('logOut', (t) =>
|
|
|
13
12
|
},
|
|
14
13
|
resolve: async (parent, args, context) => {
|
|
15
14
|
if (context.auth.session?.type === 'user') {
|
|
16
|
-
await
|
|
15
|
+
await context.services.userSession.clearSession(
|
|
16
|
+
context.auth.session,
|
|
17
|
+
context,
|
|
18
|
+
);
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
return { success: true };
|
|
@@ -39,5 +39,4 @@ export declare class CookieUserSessionService implements UserSessionService {
|
|
|
39
39
|
*/
|
|
40
40
|
getSessionInfoFromToken(req: FastifyRequest): Promise<AuthUserSessionInfo | undefined>;
|
|
41
41
|
}
|
|
42
|
-
export declare const userSessionService: CookieUserSessionService;
|
|
43
42
|
//# sourceMappingURL=user-session.service.d.ts.map
|
|
@@ -14,6 +14,8 @@ export declare const authRoutesGenerator: import("@baseplate-dev/sync").Generato
|
|
|
14
14
|
}, {
|
|
15
15
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
16
16
|
getApolloErrorCode: {};
|
|
17
|
+
getApolloErrorData: {};
|
|
18
|
+
getApolloErrorDetails: {};
|
|
17
19
|
}>>;
|
|
18
20
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
19
21
|
'*': {};
|
|
@@ -112,6 +114,13 @@ export declare const authRoutesGenerator: import("@baseplate-dev/sync").Generato
|
|
|
112
114
|
DropdownMenuSubContent: {};
|
|
113
115
|
DropdownMenuSubTrigger: {};
|
|
114
116
|
DropdownMenuTrigger: {};
|
|
117
|
+
Empty: {};
|
|
118
|
+
EmptyContent: {};
|
|
119
|
+
EmptyDescription: {};
|
|
120
|
+
EmptyHeader: {};
|
|
121
|
+
EmptyMedia: {};
|
|
122
|
+
emptyMediaVariants: {};
|
|
123
|
+
EmptyTitle: {};
|
|
115
124
|
ErrorableLoader: {};
|
|
116
125
|
ErrorDisplay: {};
|
|
117
126
|
Field: {};
|
|
@@ -24,6 +24,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
24
24
|
}, {
|
|
25
25
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
26
26
|
getApolloErrorCode: {};
|
|
27
|
+
getApolloErrorData: {};
|
|
28
|
+
getApolloErrorDetails: {};
|
|
27
29
|
}>>;
|
|
28
30
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
29
31
|
'*': {};
|
|
@@ -122,6 +124,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
122
124
|
DropdownMenuSubContent: {};
|
|
123
125
|
DropdownMenuSubTrigger: {};
|
|
124
126
|
DropdownMenuTrigger: {};
|
|
127
|
+
Empty: {};
|
|
128
|
+
EmptyContent: {};
|
|
129
|
+
EmptyDescription: {};
|
|
130
|
+
EmptyHeader: {};
|
|
131
|
+
EmptyMedia: {};
|
|
132
|
+
emptyMediaVariants: {};
|
|
133
|
+
EmptyTitle: {};
|
|
125
134
|
ErrorableLoader: {};
|
|
126
135
|
ErrorDisplay: {};
|
|
127
136
|
Field: {};
|
|
@@ -380,6 +389,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
380
389
|
DropdownMenuSubContent: {};
|
|
381
390
|
DropdownMenuSubTrigger: {};
|
|
382
391
|
DropdownMenuTrigger: {};
|
|
392
|
+
Empty: {};
|
|
393
|
+
EmptyContent: {};
|
|
394
|
+
EmptyDescription: {};
|
|
395
|
+
EmptyHeader: {};
|
|
396
|
+
EmptyMedia: {};
|
|
397
|
+
emptyMediaVariants: {};
|
|
398
|
+
EmptyTitle: {};
|
|
383
399
|
ErrorableLoader: {};
|
|
384
400
|
ErrorDisplay: {};
|
|
385
401
|
Field: {};
|
|
@@ -537,6 +553,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
537
553
|
login: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
538
554
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
539
555
|
getApolloErrorCode: {};
|
|
556
|
+
getApolloErrorData: {};
|
|
557
|
+
getApolloErrorDetails: {};
|
|
540
558
|
}>>;
|
|
541
559
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
542
560
|
'*': {};
|
|
@@ -634,6 +652,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
634
652
|
DropdownMenuSubContent: {};
|
|
635
653
|
DropdownMenuSubTrigger: {};
|
|
636
654
|
DropdownMenuTrigger: {};
|
|
655
|
+
Empty: {};
|
|
656
|
+
EmptyContent: {};
|
|
657
|
+
EmptyDescription: {};
|
|
658
|
+
EmptyHeader: {};
|
|
659
|
+
EmptyMedia: {};
|
|
660
|
+
emptyMediaVariants: {};
|
|
661
|
+
EmptyTitle: {};
|
|
637
662
|
ErrorableLoader: {};
|
|
638
663
|
ErrorDisplay: {};
|
|
639
664
|
Field: {};
|
|
@@ -799,6 +824,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
799
824
|
}, {
|
|
800
825
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
801
826
|
getApolloErrorCode: {};
|
|
827
|
+
getApolloErrorData: {};
|
|
828
|
+
getApolloErrorDetails: {};
|
|
802
829
|
}>>;
|
|
803
830
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
804
831
|
'*': {};
|
|
@@ -896,6 +923,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
896
923
|
DropdownMenuSubContent: {};
|
|
897
924
|
DropdownMenuSubTrigger: {};
|
|
898
925
|
DropdownMenuTrigger: {};
|
|
926
|
+
Empty: {};
|
|
927
|
+
EmptyContent: {};
|
|
928
|
+
EmptyDescription: {};
|
|
929
|
+
EmptyHeader: {};
|
|
930
|
+
EmptyMedia: {};
|
|
931
|
+
emptyMediaVariants: {};
|
|
932
|
+
EmptyTitle: {};
|
|
899
933
|
ErrorableLoader: {};
|
|
900
934
|
ErrorDisplay: {};
|
|
901
935
|
Field: {};
|
|
@@ -1055,6 +1089,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
1055
1089
|
resetPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
1056
1090
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
1057
1091
|
getApolloErrorCode: {};
|
|
1092
|
+
getApolloErrorData: {};
|
|
1093
|
+
getApolloErrorDetails: {};
|
|
1058
1094
|
}>>;
|
|
1059
1095
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
1060
1096
|
'*': {};
|
|
@@ -1152,6 +1188,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
1152
1188
|
DropdownMenuSubContent: {};
|
|
1153
1189
|
DropdownMenuSubTrigger: {};
|
|
1154
1190
|
DropdownMenuTrigger: {};
|
|
1191
|
+
Empty: {};
|
|
1192
|
+
EmptyContent: {};
|
|
1193
|
+
EmptyDescription: {};
|
|
1194
|
+
EmptyHeader: {};
|
|
1195
|
+
EmptyMedia: {};
|
|
1196
|
+
emptyMediaVariants: {};
|
|
1197
|
+
EmptyTitle: {};
|
|
1155
1198
|
ErrorableLoader: {};
|
|
1156
1199
|
ErrorDisplay: {};
|
|
1157
1200
|
Field: {};
|
|
@@ -1311,6 +1354,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
1311
1354
|
verifyEmail: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
1312
1355
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
1313
1356
|
getApolloErrorCode: {};
|
|
1357
|
+
getApolloErrorData: {};
|
|
1358
|
+
getApolloErrorDetails: {};
|
|
1314
1359
|
}>>;
|
|
1315
1360
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
1316
1361
|
'*': {};
|
|
@@ -1408,6 +1453,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_GENERATED: {
|
|
|
1408
1453
|
DropdownMenuSubContent: {};
|
|
1409
1454
|
DropdownMenuSubTrigger: {};
|
|
1410
1455
|
DropdownMenuTrigger: {};
|
|
1456
|
+
Empty: {};
|
|
1457
|
+
EmptyContent: {};
|
|
1458
|
+
EmptyDescription: {};
|
|
1459
|
+
EmptyHeader: {};
|
|
1460
|
+
EmptyMedia: {};
|
|
1461
|
+
emptyMediaVariants: {};
|
|
1462
|
+
EmptyTitle: {};
|
|
1411
1463
|
ErrorableLoader: {};
|
|
1412
1464
|
ErrorDisplay: {};
|
|
1413
1465
|
Field: {};
|
|
@@ -16,6 +16,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_RENDERERS: {
|
|
|
16
16
|
}, {
|
|
17
17
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
18
18
|
getApolloErrorCode: {};
|
|
19
|
+
getApolloErrorData: {};
|
|
20
|
+
getApolloErrorDetails: {};
|
|
19
21
|
}>>;
|
|
20
22
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
21
23
|
'*': {};
|
|
@@ -114,6 +116,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_RENDERERS: {
|
|
|
114
116
|
DropdownMenuSubContent: {};
|
|
115
117
|
DropdownMenuSubTrigger: {};
|
|
116
118
|
DropdownMenuTrigger: {};
|
|
119
|
+
Empty: {};
|
|
120
|
+
EmptyContent: {};
|
|
121
|
+
EmptyDescription: {};
|
|
122
|
+
EmptyHeader: {};
|
|
123
|
+
EmptyMedia: {};
|
|
124
|
+
emptyMediaVariants: {};
|
|
125
|
+
EmptyTitle: {};
|
|
117
126
|
ErrorableLoader: {};
|
|
118
127
|
ErrorDisplay: {};
|
|
119
128
|
Field: {};
|
|
@@ -97,6 +97,13 @@ export declare const mainGroup: {
|
|
|
97
97
|
DropdownMenuSubContent: {};
|
|
98
98
|
DropdownMenuSubTrigger: {};
|
|
99
99
|
DropdownMenuTrigger: {};
|
|
100
|
+
Empty: {};
|
|
101
|
+
EmptyContent: {};
|
|
102
|
+
EmptyDescription: {};
|
|
103
|
+
EmptyHeader: {};
|
|
104
|
+
EmptyMedia: {};
|
|
105
|
+
emptyMediaVariants: {};
|
|
106
|
+
EmptyTitle: {};
|
|
100
107
|
ErrorableLoader: {};
|
|
101
108
|
ErrorDisplay: {};
|
|
102
109
|
Field: {};
|
|
@@ -254,6 +261,8 @@ export declare const mainGroup: {
|
|
|
254
261
|
login: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
255
262
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
256
263
|
getApolloErrorCode: {};
|
|
264
|
+
getApolloErrorData: {};
|
|
265
|
+
getApolloErrorDetails: {};
|
|
257
266
|
}>>;
|
|
258
267
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
259
268
|
'*': {};
|
|
@@ -351,6 +360,13 @@ export declare const mainGroup: {
|
|
|
351
360
|
DropdownMenuSubContent: {};
|
|
352
361
|
DropdownMenuSubTrigger: {};
|
|
353
362
|
DropdownMenuTrigger: {};
|
|
363
|
+
Empty: {};
|
|
364
|
+
EmptyContent: {};
|
|
365
|
+
EmptyDescription: {};
|
|
366
|
+
EmptyHeader: {};
|
|
367
|
+
EmptyMedia: {};
|
|
368
|
+
emptyMediaVariants: {};
|
|
369
|
+
EmptyTitle: {};
|
|
354
370
|
ErrorableLoader: {};
|
|
355
371
|
ErrorDisplay: {};
|
|
356
372
|
Field: {};
|
|
@@ -516,6 +532,8 @@ export declare const mainGroup: {
|
|
|
516
532
|
}, {
|
|
517
533
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
518
534
|
getApolloErrorCode: {};
|
|
535
|
+
getApolloErrorData: {};
|
|
536
|
+
getApolloErrorDetails: {};
|
|
519
537
|
}>>;
|
|
520
538
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
521
539
|
'*': {};
|
|
@@ -613,6 +631,13 @@ export declare const mainGroup: {
|
|
|
613
631
|
DropdownMenuSubContent: {};
|
|
614
632
|
DropdownMenuSubTrigger: {};
|
|
615
633
|
DropdownMenuTrigger: {};
|
|
634
|
+
Empty: {};
|
|
635
|
+
EmptyContent: {};
|
|
636
|
+
EmptyDescription: {};
|
|
637
|
+
EmptyHeader: {};
|
|
638
|
+
EmptyMedia: {};
|
|
639
|
+
emptyMediaVariants: {};
|
|
640
|
+
EmptyTitle: {};
|
|
616
641
|
ErrorableLoader: {};
|
|
617
642
|
ErrorDisplay: {};
|
|
618
643
|
Field: {};
|
|
@@ -772,6 +797,8 @@ export declare const mainGroup: {
|
|
|
772
797
|
resetPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
773
798
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
774
799
|
getApolloErrorCode: {};
|
|
800
|
+
getApolloErrorData: {};
|
|
801
|
+
getApolloErrorDetails: {};
|
|
775
802
|
}>>;
|
|
776
803
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
777
804
|
'*': {};
|
|
@@ -869,6 +896,13 @@ export declare const mainGroup: {
|
|
|
869
896
|
DropdownMenuSubContent: {};
|
|
870
897
|
DropdownMenuSubTrigger: {};
|
|
871
898
|
DropdownMenuTrigger: {};
|
|
899
|
+
Empty: {};
|
|
900
|
+
EmptyContent: {};
|
|
901
|
+
EmptyDescription: {};
|
|
902
|
+
EmptyHeader: {};
|
|
903
|
+
EmptyMedia: {};
|
|
904
|
+
emptyMediaVariants: {};
|
|
905
|
+
EmptyTitle: {};
|
|
872
906
|
ErrorableLoader: {};
|
|
873
907
|
ErrorDisplay: {};
|
|
874
908
|
Field: {};
|
|
@@ -1125,6 +1159,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
|
|
|
1125
1159
|
DropdownMenuSubContent: {};
|
|
1126
1160
|
DropdownMenuSubTrigger: {};
|
|
1127
1161
|
DropdownMenuTrigger: {};
|
|
1162
|
+
Empty: {};
|
|
1163
|
+
EmptyContent: {};
|
|
1164
|
+
EmptyDescription: {};
|
|
1165
|
+
EmptyHeader: {};
|
|
1166
|
+
EmptyMedia: {};
|
|
1167
|
+
emptyMediaVariants: {};
|
|
1168
|
+
EmptyTitle: {};
|
|
1128
1169
|
ErrorableLoader: {};
|
|
1129
1170
|
ErrorDisplay: {};
|
|
1130
1171
|
Field: {};
|
|
@@ -1282,6 +1323,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
|
|
|
1282
1323
|
login: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
1283
1324
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
1284
1325
|
getApolloErrorCode: {};
|
|
1326
|
+
getApolloErrorData: {};
|
|
1327
|
+
getApolloErrorDetails: {};
|
|
1285
1328
|
}>>;
|
|
1286
1329
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
1287
1330
|
'*': {};
|
|
@@ -1379,6 +1422,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
|
|
|
1379
1422
|
DropdownMenuSubContent: {};
|
|
1380
1423
|
DropdownMenuSubTrigger: {};
|
|
1381
1424
|
DropdownMenuTrigger: {};
|
|
1425
|
+
Empty: {};
|
|
1426
|
+
EmptyContent: {};
|
|
1427
|
+
EmptyDescription: {};
|
|
1428
|
+
EmptyHeader: {};
|
|
1429
|
+
EmptyMedia: {};
|
|
1430
|
+
emptyMediaVariants: {};
|
|
1431
|
+
EmptyTitle: {};
|
|
1382
1432
|
ErrorableLoader: {};
|
|
1383
1433
|
ErrorDisplay: {};
|
|
1384
1434
|
Field: {};
|
|
@@ -1544,6 +1594,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
|
|
|
1544
1594
|
}, {
|
|
1545
1595
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
1546
1596
|
getApolloErrorCode: {};
|
|
1597
|
+
getApolloErrorData: {};
|
|
1598
|
+
getApolloErrorDetails: {};
|
|
1547
1599
|
}>>;
|
|
1548
1600
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
1549
1601
|
'*': {};
|
|
@@ -1641,6 +1693,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
|
|
|
1641
1693
|
DropdownMenuSubContent: {};
|
|
1642
1694
|
DropdownMenuSubTrigger: {};
|
|
1643
1695
|
DropdownMenuTrigger: {};
|
|
1696
|
+
Empty: {};
|
|
1697
|
+
EmptyContent: {};
|
|
1698
|
+
EmptyDescription: {};
|
|
1699
|
+
EmptyHeader: {};
|
|
1700
|
+
EmptyMedia: {};
|
|
1701
|
+
emptyMediaVariants: {};
|
|
1702
|
+
EmptyTitle: {};
|
|
1644
1703
|
ErrorableLoader: {};
|
|
1645
1704
|
ErrorDisplay: {};
|
|
1646
1705
|
Field: {};
|
|
@@ -1800,6 +1859,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
|
|
|
1800
1859
|
resetPassword: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
1801
1860
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
1802
1861
|
getApolloErrorCode: {};
|
|
1862
|
+
getApolloErrorData: {};
|
|
1863
|
+
getApolloErrorDetails: {};
|
|
1803
1864
|
}>>;
|
|
1804
1865
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
1805
1866
|
'*': {};
|
|
@@ -1897,6 +1958,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
|
|
|
1897
1958
|
DropdownMenuSubContent: {};
|
|
1898
1959
|
DropdownMenuSubTrigger: {};
|
|
1899
1960
|
DropdownMenuTrigger: {};
|
|
1961
|
+
Empty: {};
|
|
1962
|
+
EmptyContent: {};
|
|
1963
|
+
EmptyDescription: {};
|
|
1964
|
+
EmptyHeader: {};
|
|
1965
|
+
EmptyMedia: {};
|
|
1966
|
+
emptyMediaVariants: {};
|
|
1967
|
+
EmptyTitle: {};
|
|
1900
1968
|
ErrorableLoader: {};
|
|
1901
1969
|
ErrorDisplay: {};
|
|
1902
1970
|
Field: {};
|
|
@@ -2056,6 +2124,8 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
|
|
|
2056
2124
|
verifyEmail: import("@baseplate-dev/core-generators").TsTemplateFile<{}, {
|
|
2057
2125
|
apolloErrorImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
2058
2126
|
getApolloErrorCode: {};
|
|
2127
|
+
getApolloErrorData: {};
|
|
2128
|
+
getApolloErrorDetails: {};
|
|
2059
2129
|
}>>;
|
|
2060
2130
|
graphqlImports: import("@baseplate-dev/sync").ProviderType<import("@baseplate-dev/core-generators").InferTsImportMapFromSchema<{
|
|
2061
2131
|
'*': {};
|
|
@@ -2153,6 +2223,13 @@ export declare const AUTH_CORE_AUTH_ROUTES_TEMPLATES: {
|
|
|
2153
2223
|
DropdownMenuSubContent: {};
|
|
2154
2224
|
DropdownMenuSubTrigger: {};
|
|
2155
2225
|
DropdownMenuTrigger: {};
|
|
2226
|
+
Empty: {};
|
|
2227
|
+
EmptyContent: {};
|
|
2228
|
+
EmptyDescription: {};
|
|
2229
|
+
EmptyHeader: {};
|
|
2230
|
+
EmptyMedia: {};
|
|
2231
|
+
emptyMediaVariants: {};
|
|
2232
|
+
EmptyTitle: {};
|
|
2156
2233
|
ErrorableLoader: {};
|
|
2157
2234
|
ErrorDisplay: {};
|
|
2158
2235
|
Field: {};
|
package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.js
CHANGED
|
@@ -87,7 +87,7 @@ function ResetPasswordPage() {
|
|
|
87
87
|
setTokenValid(false);
|
|
88
88
|
break;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
case null: {
|
|
91
91
|
setValidationError(logAndFormatError(err, 'Sorry, we could not validate your reset link.'));
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -123,7 +123,7 @@ function ResetPasswordPage() {
|
|
|
123
123
|
setTokenValid(false);
|
|
124
124
|
break;
|
|
125
125
|
}
|
|
126
|
-
|
|
126
|
+
case null: {
|
|
127
127
|
toast.error(logAndFormatError(err, 'Sorry, we could not reset your password.'));
|
|
128
128
|
}
|
|
129
129
|
}
|
package/dist/local-auth/core/generators/auth-routes/templates/routes/auth_/reset-password.tsx
CHANGED
|
@@ -117,7 +117,7 @@ function ResetPasswordPage(): React.JSX.Element {
|
|
|
117
117
|
setTokenValid(false);
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
case null: {
|
|
121
121
|
setValidationError(
|
|
122
122
|
logAndFormatError(
|
|
123
123
|
err,
|
|
@@ -160,7 +160,7 @@ function ResetPasswordPage(): React.JSX.Element {
|
|
|
160
160
|
setTokenValid(false);
|
|
161
161
|
break;
|
|
162
162
|
}
|
|
163
|
-
|
|
163
|
+
case null: {
|
|
164
164
|
toast.error(
|
|
165
165
|
logAndFormatError(
|
|
166
166
|
err,
|
|
@@ -133,6 +133,13 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
133
133
|
DropdownMenuSubContent: {};
|
|
134
134
|
DropdownMenuSubTrigger: {};
|
|
135
135
|
DropdownMenuTrigger: {};
|
|
136
|
+
Empty: {};
|
|
137
|
+
EmptyContent: {};
|
|
138
|
+
EmptyDescription: {};
|
|
139
|
+
EmptyHeader: {};
|
|
140
|
+
EmptyMedia: {};
|
|
141
|
+
emptyMediaVariants: {};
|
|
142
|
+
EmptyTitle: {};
|
|
136
143
|
ErrorableLoader: {};
|
|
137
144
|
ErrorDisplay: {};
|
|
138
145
|
Field: {};
|
|
@@ -408,6 +415,13 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_GENERATED: {
|
|
|
408
415
|
DropdownMenuSubContent: {};
|
|
409
416
|
DropdownMenuSubTrigger: {};
|
|
410
417
|
DropdownMenuTrigger: {};
|
|
418
|
+
Empty: {};
|
|
419
|
+
EmptyContent: {};
|
|
420
|
+
EmptyDescription: {};
|
|
421
|
+
EmptyHeader: {};
|
|
422
|
+
EmptyMedia: {};
|
|
423
|
+
emptyMediaVariants: {};
|
|
424
|
+
EmptyTitle: {};
|
|
411
425
|
ErrorableLoader: {};
|
|
412
426
|
ErrorDisplay: {};
|
|
413
427
|
Field: {};
|
|
@@ -122,6 +122,13 @@ export declare const LOCAL_AUTH_CORE_REACT_SESSION_RENDERERS: {
|
|
|
122
122
|
DropdownMenuSubContent: {};
|
|
123
123
|
DropdownMenuSubTrigger: {};
|
|
124
124
|
DropdownMenuTrigger: {};
|
|
125
|
+
Empty: {};
|
|
126
|
+
EmptyContent: {};
|
|
127
|
+
EmptyDescription: {};
|
|
128
|
+
EmptyHeader: {};
|
|
129
|
+
EmptyMedia: {};
|
|
130
|
+
emptyMediaVariants: {};
|
|
131
|
+
EmptyTitle: {};
|
|
125
132
|
ErrorableLoader: {};
|
|
126
133
|
ErrorDisplay: {};
|
|
127
134
|
Field: {};
|