String verifierCode = in.nextLine();
System.out.println();
// Trade the Request Token and Verifier for the Access Token
genesysClient.authenticate(verifierCode);
Token accessToken = genesysClient.getAccessToken();
this.properties.put("access.token", accessToken.getToken());
// Get refresh token ()
Token refreshToken = genesysClient.getRefreshToken();
if (refreshToken != null) {
this.properties.put("refresh.token", refreshToken.getToken());
} else {
this.properties.remove("refresh.token");
}
saveProperties();