Replies: 1 comment
-
+1 Looking for such solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Goals
Non-Goals
Background
CredentialsProvider is widely used for handling custom username and password authentication. However, it currently lacks built-in measures to prevent brute force attacks or automated login attempts. Integrating a CAPTCHA service during the authentication flow would significantly improve security by adding a verification layer to ensure the request is legitimate.
There are alternatives, such as implementing CAPTCHA in custom API routes, but this requires additional effort and may result in inconsistent implementations across projects. Adding native support in NextAuth.js would standardize this security measure and save developers from implementing it manually.
Proposal
Introduce a CAPTCHA validation step in the CredentialsProvider flow. The proposed implementation could include:
Beta Was this translation helpful? Give feedback.
All reactions