惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
博客园 - 【当耐特】
S
SegmentFault 最新的问题
阮一峰的网络日志
阮一峰的网络日志
大猫的无限游戏
大猫的无限游戏
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件
博客园 - 三生石上(FineUI控件)
Martin Fowler
Martin Fowler
云风的 BLOG
云风的 BLOG
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
F
Fortinet All Blogs
Y
Y Combinator Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
Engineering at Meta
Engineering at Meta
MyScale Blog
MyScale Blog
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理

Giant Robots Smashing Into Other Giant Robots

From In-House PM to Consulting PM: What I Didn't Expect Client success starts before kickoff 5 easy, actionable tips for software development in healthcare Announcing importmap-update: automated dependency updates for importmap-rails When to vibe code an app and when to hire someone Why leaders have to know about PMS 🩸 Is AI ruining my brain? Tech Leaders Meetup is coming to Edinburgh Designers already think in React Tech Leaders Meetups are back in London this autumn GPT and Claude go to heraldry school Inserting State Transitions in Postgres Don’t hire thoughtbot to write code AI makes creating software faster, but in regulated industries, judgment matters more Tech Leaders meetup in Amsterdam PMs Don't Need to Code, but They Do Need to Understand How healthcare tech teams innovate while balancing speed and security Can’t touch the DOM? Reach for :has() to style any element Buying Time, Choosing Words: Consulting Through Diplomatic Communication thoughtbot around the world, meet us at upcoming events Modeling State Transitions in Postgres Humid 1.0: React server-side rendering in Rails can be easy! A prototype is not a product. It's a conversation. New: The State of Software Delivery in Healthcare What founders told us about working with AI tools for startups Join us: Building Secure Healthcare Systems Upcase has retired, but the learning continues The Bike Shed Ep 506: The Muppet Software Team Migrating to native stack navigation, with a surprise from iOS 26 Past and present thoughtbotters at LRUG this Monday
Sign in with Google for React Native
Oluwatomi Oluwafemi Alu · 2026-07-27 · via Giant Robots Smashing Into Other Giant Robots
https://thoughtbot.com/blog/sign-in-with-google-for-react-native

We just released @thoughtbot/react-native-social-auth; a modern Google Sign-In library for React Native built on top of Android’s Credential Manager and the current GoogleSignIn-iOS SDK. It ships with a Google-branding-compliant button component, a first-party Expo config plugin, and a TypeScript-first API.

import {
  GoogleSignIn,
  GoogleSignInButton,
} from '@thoughtbot/react-native-social-auth';

GoogleSignIn.configure({
  webClientId: 'YOUR_WEB_CLIENT_ID.apps.googleusercontent.com',
  iosClientId: 'YOUR_IOS_CLIENT_ID.apps.googleusercontent.com',
});

<GoogleSignInButton
  onPress={async () => {
    const credential = await GoogleSignIn.signIn();
    console.log(credential.user.email);
  }}
/>

That’s the whole surface for a happy-path sign-in.

Google has been modernizing its Sign in with Google stack on both Android and iOS.

On Android, the legacy GoogleSignInClient API from Google Play services is deprecated and will be removed in a future release. Google recommends migrating authentication flows to Credential Manager, a unified API for passwords, passkeys, and federated identity providers, including Sign in with Google. It is the recommended approach for new Android apps implementing authentication.

On iOS, version 8 of the Google Sign-In SDK added Firebase App Check support, which helps verify that sign-in requests originate from an authentic instance of the app. Version 9 added support for supplying a custom cryptographic nonce. When the nonce is validated by the server, it helps bind the ID token to a specific authentication request and protect against replay attacks. Together, these features strengthen the security of the authentication flow. See Google’s iOS SDK release notes and OpenID Connect documentation.

Many existing React Native libraries still target the previous generation of Android APIs or older versions of the iOS SDK. Although they may continue to support basic Sign in with Google flows, Android integrations built on the deprecated API will eventually need to migrate. Apps using older integrations also miss newer platform capabilities such as Credential Manager’s bottom-sheet interface, automatic sign-in, and structured error handling.

We built react-native-social-auth to close that gap.

About thoughtbot

We've been helping engineering teams deliver exceptional products for over 20 years. Our designers, developers, and product managers work closely with teams to solve your toughest software challenges through collaborative design and development. Learn more about us.