Skip to content

halindraprakoso/gel-better-auth

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gel/EdgeDB Adapter for Better-Auth

Status

It works. Create an issue if something goes wrong.

TODO:

  • Verify the API user end API's will work, plugins etc. Though they should work.

Installation

Package exists at https://npmjs.com/package/gel-better-auth

npm i gel-better-auth
# or
pnpm add gel-better-auth
# or
bun add gel-better-auth

Usage

import e from "./../dbschema/edgeql-js";
import { client } from './your-gel-client'

...
export const auth = betterAuth({
...
database: gelAdapter(client, e)
...
});

// to generate schema
const opts = auth.options;
const dbopts = opts.database(opts);
if (dbopts.createSchema) {
  dbopts.createSchema(opts);
}

About

Gel/EdgeDB Adapter for Better Auth.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 90.8%
  • EdgeQL 9.2%