Skip to content

Commit a931453

Browse files
authored
Uid2 java test site (#9)
* TokenRefreshResponse - allows consumer to explicitly check if user has opted out
1 parent 07805cc commit a931453

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

publisher/uid2-java-test-site/src/main/java/com/uid2/testsite/MainVerticle.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ private void processRefreshIdentityResponse(HttpResponse<Buffer> encryptedRespon
114114
}
115115

116116
try {
117-
IdentityTokens refreshedIdentity = PublisherUid2Helper.createIdentityFromTokenRefreshResponse(encryptedResponse.bodyAsString(), identity); //returns null if user has opted out
118-
setIdentity(ctx, refreshedIdentity == null ? null : refreshedIdentity.getJsonString());
117+
TokenRefreshResponse tokenRefreshResponse = PublisherUid2Helper.createTokenRefreshResponse(encryptedResponse.bodyAsString(), identity);
118+
setIdentity(ctx, tokenRefreshResponse.getIdentityJsonString());
119119
} catch (RuntimeException e) {
120120
renderError(null, e.getMessage(), ctx);
121121
}

0 commit comments

Comments
 (0)