GoogleSignIn Framework Reference

GIDGoogleUser

@interface GIDGoogleUser : NSObject <NSSecureCoding>

This class represents a user account.

  • The Google user ID.

    Declaration

    Swift

    var userID: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *userID;
  • Representation of basic profile data for the user.

    Declaration

    Swift

    var profile: GIDProfileData? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) GIDProfileData *profile;
  • The authentication object for the user.

    Declaration

    Swift

    var authentication: GIDAuthentication { get }

    Objective-C

    @property (nonatomic, readonly) GIDAuthentication *_Nonnull authentication;
  • The API scopes granted to the app in an array of NSString.

    Declaration

    Swift

    var grantedScopes: [String]? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray<NSString *> *grantedScopes;
  • For Google Apps hosted accounts, the domain of the user.

    Declaration

    Swift

    var hostedDomain: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *hostedDomain;
  • The client ID of the home server.

    Declaration

    Swift

    var serverClientID: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *serverClientID;
  • An OAuth2 authorization code for the home server.

    Declaration

    Swift

    var serverAuthCode: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *serverAuthCode;
  • The OpenID2 realm of the home server.

    Declaration

    Swift

    var openIDRealm: String? { get }

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *openIDRealm;