File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
library/src/main/java/com/firebase/ui/auth/google Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4
4
import android .content .Context ;
5
5
import android .content .Intent ;
6
6
import android .os .AsyncTask ;
7
+ import android .util .Log ;
7
8
8
9
import com .firebase .ui .auth .core .FirebaseLoginError ;
9
10
import com .firebase .ui .auth .core .FirebaseResponse ;
12
13
import com .google .android .gms .auth .UserRecoverableAuthException ;
13
14
14
15
class GoogleOAuthTask extends AsyncTask <String , Integer , String > {
16
+ private final String TAG = "GoogleOAuthTask" ;
17
+
15
18
private Context mContext ;
16
19
private GoogleOAuthTaskHandler mHandler ;
17
20
@@ -21,11 +24,11 @@ protected String doInBackground(String... emails) {
21
24
try {
22
25
token = GoogleAuthUtil .getToken (mContext , emails [0 ], "oauth2:profile email" );
23
26
} catch (UserRecoverableAuthException e ) {
24
-
27
+ Log . e ( TAG , "Error getting token" , e );
25
28
} catch (GoogleAuthException e ) {
26
-
29
+ Log . e ( TAG , "Error getting token" , e );
27
30
} catch (java .io .IOException e ) {
28
-
31
+ Log . e ( TAG , "Error getting token" , e );
29
32
}
30
33
if (!token .equals ("" )) return token ;
31
34
else return "" ;
You can’t perform that action at this time.
0 commit comments