Important: Starting
May 1, 2024, Apple
requires Privacy Manifests and signatures for iOS applications that use commonly-used SDKs, including GoogleSignIn-iOS. Upgrade to GoogleSignIn-iOS v7.1.0+ before May 1, 2024. Follow
our upgrade guide.
GoogleSignIn Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
Classes
The following classes are available globally.
-
This class represents the client configuration provided by the developer.
Declaration
Swift
class GIDConfiguration : NSObject, NSCopying, NSSecureCoding
Objective-C
@interface GIDConfiguration : NSObject <NSCopying, NSSecureCoding>
-
This class represents a signed-in user.
Declaration
Swift
class GIDGoogleUser : NSObject, NSSecureCoding
Objective-C
@interface GIDGoogleUser : NSObject <NSSecureCoding>
-
This class represents the basic profile information of a GIDGoogleUser
.
Declaration
Swift
class GIDProfileData : NSObject, NSCopying, NSSecureCoding
Objective-C
@interface GIDProfileData : NSObject <NSCopying, NSSecureCoding>
-
Declaration
Swift
class GIDSignIn : NSObject
Objective-C
@interface GIDSignIn : NSObject
-
This class provides the “Sign in with Google” button.
You can instantiate this class programmatically or from a NIB file. You should connect this
control to an IBAction
, or something similar, that calls
signInWithPresentingViewController:completion: on GIDSignIn
and add it to your view
hierarchy.
Declaration
Objective-C
@interface GIDSignInButton : UIControl
-
A helper object that contains the result of a successful signIn or addScopes flow.
Declaration
Swift
class GIDSignInResult : NSObject
Objective-C
@interface GIDSignInResult : NSObject
-
This class represents an OAuth2 or OpenID Connect token.
Declaration
Swift
class GIDToken : NSObject, NSSecureCoding
Objective-C
@interface GIDToken : NSObject <NSSecureCoding>
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-19 UTC.
[null,null,["Last updated 2025-05-19 UTC."],[[["\u003cp\u003eThis documentation details classes for Google Sign-In on iOS, including configuration, user representation, and sign-in management.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGIDSignIn\u003c/code\u003e is the primary class for initiating and managing user sign-in with Google accounts.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGIDGoogleUser\u003c/code\u003e and \u003ccode\u003eGIDProfileData\u003c/code\u003e represent signed-in users and their basic profile information.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGIDSignInButton\u003c/code\u003e provides a pre-built "Sign in with Google" button for easy integration.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can utilize \u003ccode\u003eGIDConfiguration\u003c/code\u003e to customize the client configuration for their application.\u003c/p\u003e\n"]]],[],null,["# GoogleSignIn Framework Reference\n\nClasses\n=======\n\nThe following classes are available globally.\n- `\n ``\n ``\n `\n\n ### [GIDConfiguration](/identity/sign-in/ios/reference/Classes/GIDConfiguration)\n\n `\n ` \n This class represents the client configuration provided by the developer. \n\n #### Declaration\n\n Swift \n\n class GIDConfiguration : NSObject, NSCopying, NSSecureCoding\n\n Objective-C \n\n @interface GIDConfiguration : NSObject \u003cNSCopying, NSSecureCoding\u003e\n\n- `\n ``\n ``\n `\n\n ### [GIDGoogleUser](/identity/sign-in/ios/reference/Classes/GIDGoogleUser)\n\n `\n ` \n This class represents a signed-in user. \n\n #### Declaration\n\n Swift \n\n class GIDGoogleUser : NSObject, NSSecureCoding\n\n Objective-C \n\n @interface GIDGoogleUser : NSObject \u003cNSSecureCoding\u003e\n\n- `\n ``\n ``\n `\n\n ### [GIDProfileData](/identity/sign-in/ios/reference/Classes/GIDProfileData)\n\n `\n ` \n This class represents the basic profile information of a [GIDGoogleUser](/identity/sign-in/ios/reference/Classes/GIDGoogleUser). \n\n #### Declaration\n\n Swift \n\n class GIDProfileData : NSObject, NSCopying, NSSecureCoding\n\n Objective-C \n\n @interface GIDProfileData : NSObject \u003cNSCopying, NSSecureCoding\u003e\n\n- `\n ``\n ``\n `\n\n ### [GIDSignIn](/identity/sign-in/ios/reference/Classes/GIDSignIn)\n\n `\n ` \n This class is used to sign in users with their Google account and manage their session.\n\n For reference, please see \"Google Sign-In for iOS and macOS\" at\n \u003chttps://developers.google.com/identity/sign-in/ios\u003e \n\n #### Declaration\n\n Swift \n\n class GIDSignIn : NSObject\n\n Objective-C \n\n @interface GIDSignIn : NSObject\n\n- `\n ``\n ``\n `\n\n ### [GIDSignInButton](/identity/sign-in/ios/reference/Classes/GIDSignInButton)\n\n `\n ` \n This class provides the \"Sign in with Google\" button.\n\n You can instantiate this class programmatically or from a NIB file. You should connect this\n control to an `IBAction`, or something similar, that calls\n signInWithPresentingViewController:completion: on [GIDSignIn](/identity/sign-in/ios/reference/Classes/GIDSignIn) and add it to your view\n hierarchy. \n\n #### Declaration\n\n Objective-C \n\n @interface GIDSignInButton : UIControl\n\n- `\n ``\n ``\n `\n\n ### [GIDSignInResult](/identity/sign-in/ios/reference/Classes/GIDSignInResult)\n\n `\n ` \n A helper object that contains the result of a successful signIn or addScopes flow. \n\n #### Declaration\n\n Swift \n\n class GIDSignInResult : NSObject\n\n Objective-C \n\n @interface GIDSignInResult : NSObject\n\n- `\n ``\n ``\n `\n\n ### [GIDToken](/identity/sign-in/ios/reference/Classes/GIDToken)\n\n `\n ` \n This class represents an OAuth2 or OpenID Connect token. \n\n #### Declaration\n\n Swift \n\n class GIDToken : NSObject, NSSecureCoding\n\n Objective-C \n\n @interface GIDToken : NSObject \u003cNSSecureCoding\u003e"]]