Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ private void processRefreshIdentityResponse(HttpResponse<Buffer> encryptedRespon
}

try {
IdentityTokens refreshedIdentity = PublisherUid2Helper.createIdentityFromTokenRefreshResponse(encryptedResponse.bodyAsString(), identity); //returns null if user has opted out
setIdentity(ctx, refreshedIdentity == null ? null : refreshedIdentity.getJsonString());
TokenRefreshResponse tokenRefreshResponse = PublisherUid2Helper.createTokenRefreshResponse(encryptedResponse.bodyAsString(), identity);
setIdentity(ctx, tokenRefreshResponse.getIdentityJsonString());
} catch (RuntimeException e) {
renderError(null, e.getMessage(), ctx);
}
Expand Down