|
|
@@ -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 {
|