Guest User

Untitled

a guest
Jul 26th, 2016
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. auth = new GoogleCredentialProvider(http, new GoogleLoginOAuthCompleteListener());
  2.  
  3. // the class
  4. public class GoogleLoginOAuthCompleteListener implements OnGoogleLoginOAuthCompleteListener {
  5.  
  6. @Override
  7. public void onInitialOAuthComplete(GoogleAuthJson auth) {
  8. logger.log("Waiting for the code " + auth.getUserCode() + " to be put in " + auth.getVerificationUrl());
  9. }
  10.  
  11. @Override
  12. public void onTokenIdReceived(GoogleAuthTokenJson tokens) {
  13. // do what you want with tokens
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment