Skip to content

Commit

Permalink
fix: pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sattvikc committed Sep 12, 2024
1 parent b6ab81b commit d87769a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main/java/io/supertokens/oauth/Transformations.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
package io.supertokens.oauth;

import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashMap;
Expand Down Expand Up @@ -70,9 +68,7 @@ public static List<String> transformCookiesFromHydra(List<String> cookies) {
for (int i = 0; i < cookies.size(); i++) {
String cookieStr = cookies.get(i);
if (cookieStr.startsWith("ory_hydra_")) {
if (cookieStr.startsWith("ory_hydra_")) {
cookieStr = cookieStr.replaceFirst("ory_hydra_", "st_oauth_");
}
cookieStr = cookieStr.replaceFirst("ory_hydra_", "st_oauth_");
cookies.set(i, cookieStr);
}
}
Expand Down

0 comments on commit d87769a

Please sign in to comment.