Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 539 Bytes

README.md

File metadata and controls

34 lines (22 loc) · 539 Bytes

Google OAuth example in Astro

Uses SQLite. Rate limiting is implemented using JavaScript Map.

Initialize project

Register an OAuth client on the Google API Console with the redirect URI pointed to /login/google/callback.

http://localhost:4321/login/google/callback

Paste the client ID and secret to a .env file.

GOOGLE_CLIENT_ID=""
GOOGLE_CLIENT_SECRET="

Create sqlite.db and run setup.sql.

sqlite3 sqlite.db

Run the application:

pnpm dev

Notes

  • TODO: Update redirect URI