khadinakbarlabs/expo-mobile-app-builder/add-google-signin-credential-manager

Claude Code and agent skill by khadinakbarlabs/expo-mobile-app-builder

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Add Google Sign-In via Credential Manager API (modern Android auth, replaces deprecated Google Sign-In SDK). Use when the user says 'google sign in android', 'credential manager android', 'auth android'.

Install

npx vskill@latest install khadinakbarlabs/expo-mobile-app-builder/add-google-signin-credential-manager

SKILL.md

Google Sign-In via Credential Manager

Modern Android auth API (Android 14+, backports to 4.4). Replaces deprecated Google Sign-In SDK.

Install

bash
npm exec --no -- expo install @react-native-google-signin/google-signin

Configure

app.json:

json
{
"expo": {
"plugins": [
["@react-native-google-signin/google-signin", {
"iosUrlScheme": "com.googleusercontent.apps.YOUR_CLIENT_ID"
}]
]
}
}

SHA-1 setup (CRITICAL)

Add BOTH to Firebase / Google Cloud OAuth:

  • Upload key SHA-1 (your keystore)
  • Play signing key SHA-1 (from Play Console → App integrity)

Without BOTH: works in dev, breaks in prod.

Implement

tsx
import { GoogleSignin, statusCodes } from '@react-native-google-signin/google-signin';
GoogleSignin.configure({
webClientId: 'YOUR_WEB_CLIENT_ID.apps.googleusercontent.com',
});
const signIn = async () => {
try {
await GoogleSignin.hasPlayServices();
const userInfo = await GoogleSignin.signIn();
// userInfo.idToken — send to backend for verification
} catch (e: any) {
if (e.code === statusCodes.SIGN_IN_CANCELLED) return;
throw e;
}
};

Backend verifies idToken

ts
import { OAuth2Client } from 'google-auth-library';
const client = new OAuth2Client();
const ticket = await client.verifyIdToken({ idToken, audience: WEB_CLIENT_ID });
const payload = ticket.getPayload();
// payload.sub = stable Google user ID

Common gotchas

  • "DEVELOPER_ERROR" → SHA-1 mismatch
  • Two web client IDs (Android client + Web client) — use WEB client ID for webClientId
  • Google Play Services missing on emulator → use one with Play services
  • Production builds need Play signing SHA-1 added to OAuth credentials

Pair with

  • add-supabase-auth-android (Supabase handles verify)
  • code-signing-android (SHA-1 extraction)

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3
7-day trend score
7

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/khadinakbarlabs/expo-mobile-app-builder/add-google-signin-credential-manager/badge)](https://verified-skill.com/skills/khadinakbarlabs/expo-mobile-app-builder/add-google-signin-credential-manager)

Something wrong with this skill or its page? Tell us.