diff --git a/src/test/java/io/supertokens/test/oauth/api/OAuthAPIHelper.java b/src/test/java/io/supertokens/test/oauth/api/OAuthAPIHelper.java index fa490d564..1ae491eab 100644 --- a/src/test/java/io/supertokens/test/oauth/api/OAuthAPIHelper.java +++ b/src/test/java/io/supertokens/test/oauth/api/OAuthAPIHelper.java @@ -41,6 +41,11 @@ public static void resetOAuthProvider() { + client.getAsJsonObject().get("client_id").getAsString(), new HashMap<>(), new HashMap<>(), new JsonObject()); } + + // We query these in an effort to help with possible warm up issues + HttpRequestForOAuthProvider.doGet("http://localhost:4444/.well-known/openid-configuration", new HashMap<>(), new HashMap<>()); + HttpRequestForOAuthProvider.doGet("http://localhost:4444/.well-known/jwks.json", new HashMap<>(), new HashMap<>()); + Thread.sleep(1000); } catch (Exception e) { throw new RuntimeException(e); }