From d1d115fd5518e748f129008f02b570bbf60ddc3d Mon Sep 17 00:00:00 2001 From: Dennis Mwangi Date: Sat, 13 Jan 2024 17:46:30 +0300 Subject: [PATCH 1/2] Update useAuth.ts --- src/runtime/composables/local/useAuth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/composables/local/useAuth.ts b/src/runtime/composables/local/useAuth.ts index a8733150..ca4ae63c 100644 --- a/src/runtime/composables/local/useAuth.ts +++ b/src/runtime/composables/local/useAuth.ts @@ -19,7 +19,7 @@ const signIn: SignInFunc = async (credentials, signInOptions, const response = await _fetch>(nuxt, path, { method, body: { - ...credentials, + credentials:credentials, ...(signInOptions ?? {}) }, params: signInParams ?? {} From ef2d16762cdc23e437a0becdeb894c75f8b5495e Mon Sep 17 00:00:00 2001 From: Dennis Mwangi Date: Sat, 13 Jan 2024 18:00:21 +0300 Subject: [PATCH 2/2] Update useAuth.ts --- src/runtime/composables/local/useAuth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/composables/local/useAuth.ts b/src/runtime/composables/local/useAuth.ts index ca4ae63c..b4a935ff 100644 --- a/src/runtime/composables/local/useAuth.ts +++ b/src/runtime/composables/local/useAuth.ts @@ -19,7 +19,7 @@ const signIn: SignInFunc = async (credentials, signInOptions, const response = await _fetch>(nuxt, path, { method, body: { - credentials:credentials, + credentials, ...(signInOptions ?? {}) }, params: signInParams ?? {}