Reputation: 21
I'm using Supabase + NextJS and I would like to password validation when users sign up to my application. I'm using Supabase's AuthUI component, which provides weak validation (it only enforces that a password be >6 characters), and it doesn't look like I can customize it. Image of AuthUI Password Validation
The solution I envision is something like:
The problem is, the AuthUI component doesn't accept anything like a onPasswordChange prop or a onSubmit prop.
Is there a way to "hook" into a 3rd party component like this to perform custom validation on an input?
Upvotes: 0
Views: 937
Reputation: 117
I am using NextJS with Supabase Auth, but I haven't used AuthUI. As far as I know, Zod with server action does a great job on validating password.
Upvotes: 0