Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

surreal-better-auth

oskar-gmerek1.7kMIT0.6.0

Better Auth adapter for SurrealDB

adapter, auth, authentication, database, better-auth, better-auth-adapter, surrealdb, surrealdb-adapter, surrealdb-auth, typescript

readme

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.

changelog

Changelog

All notable changes to this project will be documented in this file.

[0.4.0] - 2025-01-18

🚀 Features

  • Transform date strings to Date

⚙️ Miscellaneous Tasks

  • (ci) Enhance changelog validation in release workflow

[0.3.2] - 2025-01-18

⚙️ Miscellaneous Tasks

  • Bump version to 0.3.2 and remove debug logs

[0.3.1] - 2025-01-18

🐛 Bug Fixes

  • Include src/utils.ts in package

[0.3.0] - 2025-01-18

🚀 Features

  • Rewrite adapter to stick more with better-auth internal adapters

⚙️ Miscellaneous Tasks

  • Pin bun version in .prototools to 1.1.45

[0.2.1] - 2024-12-23

🐛 Bug Fixes

  • Fix generate changelog in release action

📚 Documentation

  • Add feedback section

⚙️ Miscellaneous Tasks

  • Remove superfluous comments

[0.2.0] - 2024-12-17

🐛 Bug Fixes

  • Optimize size by including only necessary files

📚 Documentation

  • Add README

OskarGmerek // SurrealDB // Better-Auth