Use this file to discover all available pages before exploring further.
Google One Tap shows a small, non-intrusive prompt that lets users sign in or sign up with a single tap — no password, no redirect. The credential returned is the same JWT ID token as the standard sign-in button.
Frictionless
Users sign in with one tap, no form required.
Non-intrusive
The prompt appears as an overlay and can be dismissed.
Passwordless
Backed by the user’s Google Account — no passwords to manage.
Both approaches trigger the One Tap prompt. The useGoogleOneTapLogin hook is useful when you don’t want to render a button at all. Using useOneTap on GoogleLogin combines the standard sign-in button with the One Tap prompt.
When embedding One Tap in an intermediate iframe, specify the allowed parent origins. One Tap automatically switches to intermediate iframe mode when this attribute is present:
On browsers with Intelligent Tracking Prevention (ITP) — such as Safari — third-party cookies are blocked, which can prevent the standard One Tap prompt from showing. Enable itp_support on GoogleLogin to use an upgraded UX that works on these browsers:
If you use One Tap, you must call googleLogout() when the user signs out of your app. Without it, One Tap may automatically sign the user back in on their next visit due to Google’s auto-select behavior.
import { googleLogout } from '@react-oauth/google';function LogoutButton() { const handleLogout = () => { googleLogout(); // Disables auto-select in Google's SDK // Then clear your own session clearMySession(); }; return <button onClick={handleLogout}>Sign out</button>;}