Need help in setting up Better Auth with Ronin on Next.js

GitHub
GitHub - genxai/gen: Generate code, images, video
Generate code, images, video. Contribute to genxai/gen development by creating an account on GitHub.
6 Replies
nikivi
nikiviOP2w ago
its a simple next.js setup where I want to make auth work like this using @daveycodez https://better-auth-ui.com perhaps
Better Auth UI
Better Auth UI
UI components for the most comprehensive authentication library for TypeScript.
No description
No description
No description
nikivi
nikiviOP2w ago
the tricky part is that this project is using https://ronin.co as its database (which is libsql based but I can't use any of the drizzle stuff etc.) the better auth plugin has to be custom
RONIN
nikivi
nikiviOP2w ago
@bekacru wrote a version of such plugin here: https://github.com/nikitavoloboev/better-auth-ronin
GitHub
GitHub - nikitavoloboev/better-auth-ronin
Contribute to nikitavoloboev/better-auth-ronin development by creating an account on GitHub.
nikivi
nikiviOP2w ago
but its unclear how to make use of it to make it actually work with ui and ronin
nikivi
nikiviOP2w ago
currently ronin schema looks like this
No description
bekacru
bekacru2w ago
I'm not sure what the adapter has to do with the UI library. You just need to pass the adapter to the server auth config. What am I missing?

Did you find this page helpful?