From 049b558e748d4637b908ed3f95f47312737ef775 Mon Sep 17 00:00:00 2001 From: Johannes Przymusinski Date: Tue, 10 Sep 2024 08:01:30 +0200 Subject: [PATCH] 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}[]' + }, } } }