github daveyplate/better-auth-ui v1.5.0

latest releases: v2.0.0, v1.7.0, v1.6.0...
2 months ago

This update contains a huge overhaul of the forms using React Hook Form & zod:

https://ui.shadcn.com/docs/components/form

Every auth form & settings form now has client side validation as well as shadcn styled error handling. Full support for localization for all errors as well. This also includes more gracefully preserving forms (e.g., sign up) on failure.

Another fix contained in this patch is using transitions for onSessionChange callbacks, this works great with Next.js when you have to call router.refresh to clear middleware cache. You don't need to call router.refresh() on page mount any longer to beat race conditions, simply just call it onSessionChange and the logins will wait for the useTransition hook to finish before routing to the redirectTo on success. This should fix any issues with redirects that may have occurred in certain setups.

Don't miss a new better-auth-ui release

NewReleases is sending notifications on new releases.