From 049b558e748d4637b908ed3f95f47312737ef775 Mon Sep 17 00:00:00 2001 From: Johannes Przymusinski Date: Tue, 10 Sep 2024 08:01:30 +0200 Subject: [PATCH 1/2] docs: correct location of session data type definitions --- docs/guide/local/session-data.md | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/docs/guide/local/session-data.md b/docs/guide/local/session-data.md index 33398446..6f2bf750 100644 --- a/docs/guide/local/session-data.md +++ b/docs/guide/local/session-data.md @@ -7,11 +7,13 @@ export default defineNuxtConfig({ auth: { provider: { type: 'local', - sessionDataType: { - id: 'string | number', - firstName: 'string', - lastName: 'string' - } + session: { + dataType: { + id: 'string | number', + firstName: 'string', + lastName: 'string', + }, + }, } } }) @@ -36,11 +38,13 @@ export default defineNuxtConfig({ auth: { provider: { type: 'local', - sessionDataType: { - id: 'string | number', - firstName: 'string', - lastName: 'string', - subscriptions: '{ id: number, active: boolean}[]' + session: { + dataType: { + id: 'string | number', + firstName: 'string', + lastName: 'string', + subscriptions: '{ id: number, active: boolean}[]' + }, } } } From e1c69e1200ab5f71b605b1b59d75c5459ea997e8 Mon Sep 17 00:00:00 2001 From: Marsel Shayhin <18054980+phoenix-ru@users.noreply.github.com> Date: Thu, 12 Sep 2024 11:49:57 +0200 Subject: [PATCH 2/2] Update docs/guide/local/session-data.md --- docs/guide/local/session-data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/local/session-data.md b/docs/guide/local/session-data.md index 6f2bf750..4dfbcc7c 100644 --- a/docs/guide/local/session-data.md +++ b/docs/guide/local/session-data.md @@ -43,7 +43,7 @@ export default defineNuxtConfig({ id: 'string | number', firstName: 'string', lastName: 'string', - subscriptions: '{ id: number, active: boolean}[]' + subscriptions: '{ id: number, active: boolean }[]' }, } }