Skip to content

Commit

Permalink
refactor: minor fixes for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Sep 27, 2024
1 parent 8bf8313 commit 188275c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/io/supertokens/oauth/OAuthToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,10 @@ public static String reSignToken(AppIdentifier appIdentifier, Main main, String
}
} else {
payloadUpdate = payload.getAsJsonObject("initialPayload");
payload.remove("initialPayload");
}
}
payload.remove("ext");
payload.remove("initialPayload");

if (payloadUpdate != null) {
for (Map.Entry<String, JsonElement> entry : payloadUpdate.entrySet()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ protected void doPut(HttpServletRequest req, HttpServletResponse resp) throws IO
accessToken.addProperty("tId", tId);
accessToken.addProperty("rsub", rsub);
accessToken.addProperty("sessionHandle", sessionHandle);
accessToken.addProperty("gid", UUID.randomUUID().toString());
accessToken.add("initialPayload", initialAccessTokenPayload);

JsonObject idToken = new JsonObject();
idToken.add("initialPayload", initialIdTokenPayload);
accessToken.addProperty("gid", UUID.randomUUID().toString());

// remove the above from input
input.remove("iss");
Expand Down

0 comments on commit 188275c

Please sign in to comment.