Skip to content

lucia-auth/example-astro-github-oauth

Repository files navigation

GitHub OAuth example in Astro

Uses SQLite. Rate limiting is implemented using JavaScript Map.

Initialize project

Create a GitHub OAuth app with the redirect URI pointed to /login/github/callback.

http://localhost:4321/login/github/callback
GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET="

Create sqlite.db and run setup.sql.

sqlite3 sqlite.db

Run the application:

pnpm dev

Notes

  • TODO: Update redirect URI