Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- auth = new GoogleCredentialProvider(http, new GoogleLoginOAuthCompleteListener());
- // the class
- public class GoogleLoginOAuthCompleteListener implements OnGoogleLoginOAuthCompleteListener {
- @Override
- public void onInitialOAuthComplete(GoogleAuthJson auth) {
- logger.log("Waiting for the code " + auth.getUserCode() + " to be put in " + auth.getVerificationUrl());
- }
- @Override
- public void onTokenIdReceived(GoogleAuthTokenJson tokens) {
- // do what you want with tokens
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment