Skip to content

feat(extension): google oauth - jwt auth flow (Week 2 AC 1)#7

Merged
BODMAT merged 3 commits into
developmentfrom
feature/extension-auth-google-oauth
May 21, 2026
Merged

feat(extension): google oauth - jwt auth flow (Week 2 AC 1)#7
BODMAT merged 3 commits into
developmentfrom
feature/extension-auth-google-oauth

Conversation

@BODMAT

@BODMAT BODMAT commented May 21, 2026

Copy link
Copy Markdown
Owner

Implements full auth flow between Chrome Extension and Next.js Dashboard.

What's included

Dashboard

  • POST /api/auth/extension — verifies Google ID token via google-auth-library, upserts User in DB, returns signed JWT
  • server/auth.ts — business logic (verify → upsert → issue)
  • server/schemas/auth.ts — Zod input schema

Extension

  • background/index.tslaunchWebAuthFlow (OIDC, response_type=id_token), JWT exchange, storage, auto-refresh, apiFetch() helper for AC 5
  • types/auth.tsStoredAuth, AuthMessage, AuthResponse types
  • manifest.ts — added identity permission
  • Popup — Login / Logout / status display

JWT lives only in chrome.storage.local (service worker). Popup and content script communicate via chrome.runtime.sendMessage.

Testing

Requires Google Cloud Console OAuth 2.0 Client ID configured for Chrome Extension type with the unpacked extension ID.

Closes Week 2 AC 1

@vercel

vercel Bot commented May 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worktrace Ready Ready Preview, Comment May 21, 2026 9:07pm

@BODMAT BODMAT merged commit 3ca1aea into development May 21, 2026
4 checks passed
@BODMAT BODMAT deleted the feature/extension-auth-google-oauth branch May 21, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant