Skip to content

gistajs/auth

Repository files navigation

Auth Starter

Database starter with auth flows prewired so you can build protected product features right away.

Quick Start

Need help getting set up? Follow the step-by-step guide at https://gistajs.com/learn.

  1. Setup
# As always, install dependencies first
pnpm install

# Sets up .env and generates a cookie secret
pnpm prep

# Now create the users table — hit Enter to approve
atlas schema apply --env dev
  1. Run locally
pnpm dev

What's included

  • React Router v7 SSR
  • Drizzle ORM + Atlas migration flow
  • Cookie session auth (COOKIE_SECRET)
  • Email/password signup/login/logout
  • Verify + reset password token flows
  • Google and GitHub OAuth
  • Protected route example (/app)
  • Toast UX via remix-toast + sonner
  • Verify/reset links are logged to server output in local/dev by default.

Issues

Issues are welcome in this repository if something looks off.

Direct PRs are not accepted here.

About

Auth-ready Gista.js starter with React Router v7, Drizzle, SQLite/Turso, email/password login, sessions, and protected routes.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors