Skip to content

Commit

Permalink
style: eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DonIsaac committed Oct 7, 2024
1 parent 89216b7 commit 8245212
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions playground-authjs/server/api/auth/[...].ts
Original file line number Diff line number Diff line change
Expand Up @@ -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

}
})
]
Expand Down
5 changes: 2 additions & 3 deletions src/runtime/composables/local/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,8 @@ async function refresh(getSessionOptions?: GetSessionOptions) {
)
return
}

rawRefreshToken.value = extractedRefreshToken


rawRefreshToken.value = extractedRefreshToken
}

rawToken.value = extractedToken
Expand Down

0 comments on commit 8245212

Please sign in to comment.