GIDUserAuthFlowResult.m 609 B

12345678910111213141516171819202122232425
  1. #import "GoogleSignIn/Sources/GIDUserAuthFlowResult.h"
  2. #import "GoogleSignIn/Sources/Public/GoogleSignIn/GIDProfileData.h"
  3. #ifdef SWIFT_PACKAGE
  4. @import AppAuth;
  5. #else
  6. #import <AppAuth/AppAuth.h>
  7. #endif
  8. @implementation GIDUserAuthFlowResult
  9. - (instancetype)initWithAuthState:(OIDAuthState *)authState
  10. profileData:(GIDProfileData *)profileData
  11. serverAuthCode:(nullable NSString *)serverAuthCode{
  12. self = [super init];
  13. if (self) {
  14. _authState = authState;
  15. _profileData = profileData;
  16. _serverAuthCode = [serverAuthCode copy];
  17. }
  18. return self;
  19. };
  20. @end