From 8245212792e68488bb615e7b9ae355e9937e33af Mon Sep 17 00:00:00 2001 From: Don Isaac Date: Mon, 7 Oct 2024 15:43:50 -0400 Subject: [PATCH] style: eslint fixes --- playground-authjs/server/api/auth/[...].ts | 3 +-- src/runtime/composables/local/useAuth.ts | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/playground-authjs/server/api/auth/[...].ts b/playground-authjs/server/api/auth/[...].ts index 94f123a5..eccec0c7 100644 --- a/playground-authjs/server/api/auth/[...].ts +++ b/playground-authjs/server/api/auth/[...].ts @@ -35,14 +35,13 @@ export default NuxtAuthHandler({ // Any object returned will be saved in `user` property of the JWT return user } - + console.error('Warning: Malicious login attempt registered, bad credentials provided') // If you return null then an error will be displayed advising the user to check their details. return null // You can also Reject this callback with an Error thus the user will be sent to the error page with the error message as a query parameter - } }) ] diff --git a/src/runtime/composables/local/useAuth.ts b/src/runtime/composables/local/useAuth.ts index 722b6b4f..1b311dfc 100644 --- a/src/runtime/composables/local/useAuth.ts +++ b/src/runtime/composables/local/useAuth.ts @@ -218,9 +218,8 @@ async function refresh(getSessionOptions?: GetSessionOptions) { ) return } - - rawRefreshToken.value = extractedRefreshToken - + + rawRefreshToken.value = extractedRefreshToken } rawToken.value = extractedToken