Skip to content

SurrealDB Adapter for Better Auth. Use your favorite database as a Better-Auth storage.

License

Notifications You must be signed in to change notification settings

oskar-gmerek/surreal-better-auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Surreal Adapter for Better Auth

This adapter allows you to use SurrealDB as a database for your Better Auth implementation.

Feedback

⭐ Found this project helpful? Show some love with a star and consider to be a SPONSOR! Your support keeps the code evolving. 🚀

Free Database

✨✨✨ Grab FREE SurrealDB Cloud instance + something extra ✨✨✨

» Installation

bun add surreal-better-auth

» Configuration

import { surrealAdapter } from 'surreal-better-auth'
import { databaseInstance } from './your-surreal-singleton'

...
export const auth = betterAuth({
...
database: surrealAdapter(databaseInstance)
...
})

✨ Contributions

Contributions are welcome! Please open an issue or a pull request if you have any suggestions or improvements.