Skip to content

Instantly share code, notes, and snippets.

View docgecko's full-sized avatar

Daren Warburton docgecko

View GitHub Profile
@taavetmaask
taavetmaask / supabase_authjs_adapter.md
Last active September 13, 2023 10:13
Simple SurrealDB Auth.js Adapter

Simple SurrealDB Auth.js Adapter

Simple Auth.js Adapter I made for SurrealDB. It uses REST API. Surrealdb-js package doesn't have to be installed. It's also important to change the generateSessionToken() function in SolidAuthConfig as shown below (#6074).

Adapter code:

import {
  Adapter,
  AdapterUser,
  AdapterAccount,
  AdapterSession,