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 44import android .content .Context ;
55import android .content .Intent ;
66import android .os .AsyncTask ;
7+ import android .util .Log ;
78
89import com .firebase .ui .auth .core .FirebaseLoginError ;
910import com .firebase .ui .auth .core .FirebaseResponse ;
1213import com .google .android .gms .auth .UserRecoverableAuthException ;
1314
1415class GoogleOAuthTask extends AsyncTask <String , Integer , String > {
16+ private final String TAG = "GoogleOAuthTask" ;
17+
1518 private Context mContext ;
1619 private GoogleOAuthTaskHandler mHandler ;
1720
@@ -21,11 +24,11 @@ protected String doInBackground(String... emails) {
2124 try {
2225 token = GoogleAuthUtil .getToken (mContext , emails [0 ], "oauth2:profile email" );
2326 } catch (UserRecoverableAuthException e ) {
24-
27+ Log . e ( TAG , "Error getting token" , e );
2528 } catch (GoogleAuthException e ) {
26-
29+ Log . e ( TAG , "Error getting token" , e );
2730 } catch (java .io .IOException e ) {
28-
31+ Log . e ( TAG , "Error getting token" , e );
2932 }
3033 if (!token .equals ("" )) return token ;
3134 else return "" ;
You can’t perform that action at this time.
0 commit comments