diff --git a/src/runtime/composables/local/useAuth.ts b/src/runtime/composables/local/useAuth.ts index 11d31c8b..3e320e6a 100644 --- a/src/runtime/composables/local/useAuth.ts +++ b/src/runtime/composables/local/useAuth.ts @@ -19,10 +19,7 @@ const signIn: SignInFunc = async (credentials, signInOptions, const { path, method } = config.endpoints.signIn const response = await _fetch>(nuxt, path, { method, - body: { - ...credentials, - ...(signInOptions ?? {}) - }, + body: credentials, params: signInParams ?? {} }) diff --git a/src/runtime/composables/refresh/useAuth.ts b/src/runtime/composables/refresh/useAuth.ts index 6e2c8ea9..119da38e 100644 --- a/src/runtime/composables/refresh/useAuth.ts +++ b/src/runtime/composables/refresh/useAuth.ts @@ -25,10 +25,7 @@ const signIn: ReturnType['signIn'] = async ( const { path, method } = config.endpoints.signIn const response = await _fetch>(nuxt, path, { method, - body: { - ...credentials, - ...(signInOptions ?? {}) - }, + body: credentials, params: signInParams ?? {} })