Skip to content

Instantly share code, notes, and snippets.

View jsaugat's full-sized avatar
🪼

Saugat Joshi jsaugat

🪼
View GitHub Profile
@jsaugat
jsaugat / google_auth.md
Created December 29, 2025 06:11
Quick mental model for Google Auth in a Next.js app without third-party auth libraries (no NextAuth, no Auth0).

Here’s a quick mental model for Google Auth in a Next.js app without third-party auth libraries (no NextAuth, no Auth0).


🧠 The Mental Model (big picture)

Think of Google Auth as 4 hops between Browser → Your App → Google → Your App.

User → Your App → Google → Your App → User (logged in)