# GoogleSignIn Framework Reference

# GIDSignInResult

    @interface GIDSignInResult : NSObject

A helper object that contains the result of a successful signIn or addScopes flow.
- `


  ### [user](https://developers.google.com/identity/sign-in/ios/reference/Classes/GIDSignInResult#/c:objc(cs)GIDSignInResult(py)user)


  ` The updated `https://developers.google.com/identity/sign-in/ios/reference/Classes/GIDGoogleUser.html` instance for the user who just completed the flow.

  #### Declaration

  Swift

      var user: https://developers.google.com/identity/sign-in/ios/reference/Classes/GIDGoogleUser.html { get }

  Objective-C

      @property (nonatomic, readonly) https://developers.google.com/identity/sign-in/ios/reference/Classes/GIDGoogleUser.html *_Nonnull user;

- `


  ### [serverAuthCode](https://developers.google.com/identity/sign-in/ios/reference/Classes/GIDSignInResult#/c:objc(cs)GIDSignInResult(py)serverAuthCode)


  ` An OAuth2 authorization code for the home server.

  #### Declaration

  Swift

      var serverAuthCode: String? { get }

  Objective-C

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

- `


  ### [+new](https://developers.google.com/identity/sign-in/ios/reference/Classes/GIDSignInResult#/c:objc(cs)GIDSignInResult(cm)new)


  ` Unsupported.

  #### Declaration

  Objective-C

      + (nonnull instancetype)new;

- `


  ### [-init](https://developers.google.com/identity/sign-in/ios/reference/Classes/GIDSignInResult#/c:objc(cs)GIDSignInResult(im)init)


  ` Unsupported.

  #### Declaration

  Objective-C

      - (nonnull instancetype)init;