How google/googlesignin-ios works
Google Sign-In is an iOS/macOS SDK that lets an app initiate Google account authentication and receive a sign-in result and user credentials. The principal documented workflow starts at an app-provided button or direct API call, invokes the core sign-in API, and returns a result to the app; on macOS the SDK uses the default browser. The tree and README establish additional capabilities, but most core implementations are unsampled, so those links are shown as unverified rather than asserted calls.
Main entry points: GIDSignIn.h Sign-in API · GoogleSignInButton.swift SwiftUI button · GIDSignInResult.h Sign-in result · GIDGoogleUser.h Google user
Components 17
Sign-in SDK
- Sign-in API
GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignIn.h
Identity and credentials
- Sign-in result
GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignInResult.h - Google user
GoogleSignIn/Sources/Public/GoogleSignIn/GIDGoogleUser.h - Auth tokens
GoogleSignIn/Sources/Public/GoogleSignIn/GIDToken.h - Scope handling
GoogleSignIn/Sources/GIDScopes.h - Auth migration
GoogleSignIn/Sources/GIDAuthStateMigration/GIDAuthStateMigration.h
Security features
- App Check
GoogleSignIn/Sources/GIDAppCheck/Implementations/GIDAppCheck.h - Enterprise errors
GoogleSignIn/Sources/GIDEMMErrorHandler.h - EMM alert UI
GoogleSignIn/Sources/GIDEMMAlertPresenter/Implementation/GIDEMMAlertWindowPresenter.h - Passcode probe
GoogleSignIn/Sources/GIDLocalAuthentication/API/GIDLocalAuthenticationContext.h
Sign-in UI
- SwiftUI button
GoogleSignInSwift/Sources/GoogleSignInButton.swift - Button model
GoogleSignInSwift/Sources/GoogleSignInButtonViewModel.swift - Button styling
GoogleSignInSwift/Sources/GoogleSignInButtonStyling.swift - UIKit button
GoogleSignIn/Sources/Public/GoogleSignIn/GIDSignInButton.h
Other components
- Integrating app
- Google account service
- Default browser
Connections 17
- Integrating app → SwiftUI button: uses
README.md - Integrating app → UIKit button: uses
README.md - Integrating app → Sign-in API: invokes
README.md - SwiftUI button → Sign-in API: action invokes
README.md - Sign-in API → Sign-in result: returns
- Sign-in result → Google user: provides
- Google user → Auth tokens: contains
- Sign-in API → Google account service: authenticates with
- Sign-in API → Default browser: opens
README.md - Sign-in API → Scope handling: supports
- Sign-in API → Auth migration: migrates legacy state
- Sign-in API → App Check: uses
- Sign-in API → Enterprise errors: handles errors
- Enterprise errors → EMM alert UI: presents alerts
- Sign-in API → Passcode probe: probes passcode
- SwiftUI button → Button model: observes
GoogleSignInSwift/Sources/GoogleSignInButton.swift - Button model → Button styling: derives style