Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

sign-in-with-google-web

Skill by google

Implements Sign In With Google on the web using Google Identity Services. It is for developers who add Google sign-in, One Tap, and secure ID token verification to web apps.

  • Score 94
  • 25k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install sign-in-with-google-web

Built from the published package, never by AI.

git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/identity/sign-in-with-google-web ~/.claude/skills/sign-in-with-google-web

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install sign-in-with-google-web in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Sign In With Google (SiwG) is an agent skill that guides implementation of Google sign-in on the web using the Google Identity Services SDK at accounts.google.com/gsi/client. It covers sign-in buttons, Google One Tap with FedCM, and setup in React, Next.js, Angular and plain HTML.

The skill recommends backend-mediated patterns first: a Backend For Frontend or a token-mediating backend that uses a login_uri redirect. It also covers ID token verification on Python, Node.js, Go and Java, Workspace domain checks with hd, CSP, COOP and Permissions Policy headers, and sign-out. It is written for web developers adding Google sign-in to a site or app.

Written from the project's SKILL.md and checked against it.

What it can do

  • Google sign-in buttonsCreates Google sign-in buttons with the Google Identity Services SDK.
  • Google One Tap with FedCMImplements One Tap sign-in with FedCM and automatic return sign-in.
  • ID token verificationVerifies Google ID tokens on Python, Node.js, Go and Java backends.
  • Workspace domain restrictionEnforces Google Workspace domain limits using the hd claim.
  • Client token securitySecures client-side ID tokens with WebCrypto nonces or encrypted IndexedDB.
  • Cross-origin iframe embeddingEmbeds sign-in in cross-origin iframes via the Intermediate Iframe API.
  • Security header configurationConfigures CSP, COOP and Permissions Policy headers for sign-in.
  • Sign-out and revocationHandles sign-out and revocation, including disabling auto-select on logout.

What you need

  • Google Identity Services web SDK (accounts.google.com/gsi/client)
  • A web app built with HTML, React, Next.js or Angular
  • Backend runtime: Python, Node.js, Go or Java, for ID token verification

Try asking

  • Add a Google sign-in button to my React app using Google Identity Services.
  • Verify Google ID tokens in my Node.js backend and restrict sign-in to my Workspace domain.
  • Set up CSP, COOP and Permissions Policy headers for Google sign-in on my site.

Good to know

  • Not for legacy Google Sign-In (gapi.auth2), which is retired.
  • Not for Google Cloud IAM service accounts.
  • Not for Android or iOS native Credential Manager.
  • Client-only patterns are fallbacks for static or offline PWA setups.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/identity/sign-in-with-google-web/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md17 KB
  • references/bff_fastapi_verification.md3 KB
  • references/in_memory_spa_nonce.md3 KB
  • references/intermediate_iframe.md2 KB
  • references/offline_pwa_encryption.md4 KB
Show all 6 files
  • references/tmb_login_uri_redirect.md3 KB

Alternatives to sign-in-with-google-web

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

sign-in-with-google-web: common questions

Is Sign In With Google safe to use in a browser app?

The skill recommends a backend-mediated pattern, such as a Backend For Frontend, so ID tokens are not exposed to browser JavaScript. Client-only patterns are described as fallbacks for serverless or offline apps.

Can it restrict sign-in to a Google Workspace domain?

Yes. The skill covers enforcing Google Workspace domain restrictions using the hd claim.

Does it replace the old gapi.auth2 library?

Yes. The skill says gapi.auth2 is retired and should not be mixed with Google Identity Services. It uses GIS methods only.

How do I install sign-in-with-google-web?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is sign-in-with-google-web free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is sign-in-with-google-web safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to sign-in-with-google-web?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

sign-in-with-google-web Install

Add to stack

Loading.