Since its introduction at the end of last year, Better Auth has proven to be the most effective solution for extending web apps to offer any kind of popular authentication method, with the least amount of setup complexity, while also staying in control of your data. To make it as easy as possible for web apps powered by RONIN databases to securely authenticate users, we are excited to announce the official Better Auth Adapter for RONIN , which grants Better Auth granular control over the models in your database that store your users, sessions, and other data that is relevant for your desired authentication method. Get started by installing the adapter from npm:
Since its introduction at the end of last year, Better Auth has proven to be the most effective solution for extending web apps to offer any kind of popular authentication method, with the least amount of setup complexity, while also staying in control of your data.
To make it as easy as possible for web apps powered by RONIN databases to securely authenticate users, we are excited to announce the official Better Auth Adapter for RONIN, which grants Better Auth granular control over the models in your database that store your users, sessions, and other data that is relevant for your desired authentication method.
Get started by installing the adapter from npm:
npm add @ronin/better-auth
Afterward, import the package and pass it as the value of the database
config option when initializing your Better Auth instance:
import { betterAuth } from 'better-auth';
import { ronin } from '@ronin/better-auth';
const auth = betterAuth({
database: ronin()
});
Lastly, add our recommended RONIN models to your repository and apply them to your database using the RONIN CLI:
ronin diff --apply
That’s all.
Your app is now ready to make use of the wide range of authentication providers that are natively supported by Better Auth, such as Google, Apple, GitHub, or even Email & Password.
If you don’t yet have a RONIN database and would like to enjoy minimal global latencies for authentication in your web app and a DX specifically tailored to TypeScript (just like Better Auth), sign up now and get started with RONIN in a matter of seconds.