Migrate from next auth to better auth

Hello everyone, please I need help. currently I am working on a project. That’s not deployed yet and I am using next auth, but in next auth i can control the login function. So now I don’t know how can I control the login function in better auth, i want to implement my own login logic because in my case i dont have a registration method, only login via LDAP or Active Directory, So please if you know how to overwrite the login function share the code with me. Thanks
1 Reply
bekacru
bekacru4w ago
If you want to control the whole login logic, you should make a plugin. Check the plugins docs https://www.better-auth.com/docs/concepts/plugins
Plugins | Better Auth
Learn how to use plugins with Better Auth.

Did you find this page helpful?