From 7d8971fdf12dd9633ead4b07d141f773a80f50e9 Mon Sep 17 00:00:00 2001 From: "Hoa V. DINH" Date: Mon, 8 Jul 2013 21:00:24 -0700 Subject: Fixed Mac OAuth 2.0 example --- example/mac/macExample/macExample/AppDelegate.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'example') diff --git a/example/mac/macExample/macExample/AppDelegate.m b/example/mac/macExample/macExample/AppDelegate.m index 8cf8e858..5081f8a5 100644 --- a/example/mac/macExample/macExample/AppDelegate.m +++ b/example/mac/macExample/macExample/AppDelegate.m @@ -9,8 +9,8 @@ #import "AppDelegate.h" #import -#import -#import +#import "GTMOAuth2WindowController.h" +#import "GTMOAuth2SignIn.h" #import "MCTMsgListViewController.h" #import "FXKeychain.h" @@ -94,11 +94,11 @@ finishedRefreshWithFetcher:(GTMHTTPFetcher *)fetcher // Authentication failed } else { // Authentication succeeded - [self retrieveAccessToken:auth]; + [self loginWithAuth:auth]; } } -- (void) retrieveAccessToken:(GTMOAuth2Authentication *)auth +- (void) loginWithAuth:(GTMOAuth2Authentication *)auth { self.login = [auth userEmail]; self.oauth2Token = [auth accessToken]; -- cgit v1.2.3