Przeglądaj źródła

restoredGoogleUserFromPreviousSignIn is a private method.

Peter Andrews 4 lat temu
rodzic
commit
a698945eef
1 zmienionych plików z 11 dodań i 11 usunięć
  1. 11 11
      GoogleSignIn/Sources/GIDSignIn.m

+ 11 - 11
GoogleSignIn/Sources/GIDSignIn.m

@@ -174,17 +174,6 @@ static const NSTimeInterval kMinimumRestoredAccessTokenTimeToExpire = 600.0;
   return [authState isAuthorized];
 }
 
-- (nullable GIDGoogleUser *)restoredGoogleUserFromPreviousSignIn {
-  OIDAuthState *authState = [self loadAuthState];
-  
-  if (!authState) {
-    return nil;
-  }
-
-  return [[GIDGoogleUser alloc] initWithAuthState:authState
-                                      profileData:nil];
-}
-
 - (void)restorePreviousSignInWithCallback:(nullable GIDSignInCallback)callback {
   [self signInWithOptions:[GIDSignInInternalOptions silentOptionsWithCallback:callback]];
 }
@@ -400,6 +389,17 @@ static const NSTimeInterval kMinimumRestoredAccessTokenTimeToExpire = 600.0;
   }
 }
 
+- (nullable GIDGoogleUser *)restoredGoogleUserFromPreviousSignIn {
+  OIDAuthState *authState = [self loadAuthState];
+
+  if (!authState) {
+    return nil;
+  }
+
+  return [[GIDGoogleUser alloc] initWithAuthState:authState
+                                      profileData:nil];
+}
+
 # pragma mark - Authentication flow
 
 - (void)authenticateInteractivelyWithOptions:(GIDSignInInternalOptions *)options {