Skip to content

minimal better-auth oauth example with react-router v6, NO nextjs/react-query/tanstack/...

License

Notifications You must be signed in to change notification settings

uptonking/better-auth-oauth-local

Repository files navigation

Better Auth Generic OAuth Example with local idp like Authentik

minimal better-auth oauth example with react-router v6, NO nextjs/react-query/tanstack/...

Authentik Setup

Local development

npm i 

# start pg db; you can also use local sqlite here `apps/backend/src/lib/auth.ts`
docker compose up -d

# init database schema
cd sso-better-auth/apps/backend/
cp .env.sample .env
npx @better-auth/cli generate --output src/db/schema.ts
npx drizzle-kit push

# start full stack app
cd sso-better-auth/

npx nx run backend:serve

npx nx run web-app:serve

license

MIT

About

minimal better-auth oauth example with react-router v6, NO nextjs/react-query/tanstack/...

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published