Skip to content

Make Google OAuth flow SPA-friendly#14

Merged
ltyu merged 2 commits intomasterfrom
leyu00/spa-google-oauth-flow
Mar 19, 2026
Merged

Make Google OAuth flow SPA-friendly#14
ltyu merged 2 commits intomasterfrom
leyu00/spa-google-oauth-flow

Conversation

@ltyu
Copy link
Copy Markdown
Owner

@ltyu ltyu commented Mar 19, 2026

Summary

  • return the Google consent URL as JSON from /auth/google/start so SPA clients can fetch it with a Bearer token and redirect the browser themselves
  • make /auth/google/callback public while keeping state-based validation so Google can complete the redirect without app auth headers
  • allow http://localhost:3000 in the HttpApi CORS config for local SPA development and document the updated flow

@ltyu ltyu merged commit 31d6389 into master Mar 19, 2026
1 check passed
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