google-signin
Installation
SKILL.md
Google Sign-In (GIS) — production web login
Condensed operating instructions. Full narrative guide with diagrams, token
anatomy, troubleshooting table, and a copy-paste FastAPI + JS skeleton:
references/full-guide.md — read it when
implementing from scratch. A live reference implementation exists in the
Prowl repo (0xDEV): web/auth.py, web/server.py:1657
(/api/auth/google), web/static/js/app.js:16-110.
Pick the right flow first
- Only need "who is this user?" → GIS ID-token flow (this skill): load
https://accounts.google.com/gsi/client, receive one Google-signed JWT, verify server-side. No redirect URI, no client secret, no Google-token storage. - Need to call Google APIs (Gmail/Drive/Calendar) on the user's behalf → OAuth 2.0 authorization-code flow instead (redirect URI + client secret + refresh tokens). Never use the code flow just for login.