You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Override
public AuthorizationCodeTokenRequest newTokenRequest(String authorizationCode) {
return new LenientAuthorizationCodeTokenRequest(getTransport(), getJsonFactory(),
new GenericUrl(getTokenServerEncodedUrl()), authorizationCode)
.setClientAuthentication(getClientAuthentication())
.setScopes(getScopes())
.setRequestInitializer(
new HttpRequestInitializer() {
@Override
public void initialize(HttpRequest request) throws IOException {
//NullPointerException If do not set the "Request Initializer"
getRequestInitializer().initialize(request);
request.getHeaders().setAccept("application/json");
}
});
}
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: