diff --git a/src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java b/src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java index 6d56e396d..2fdb846a9 100644 --- a/src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java +++ b/src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java @@ -58,7 +58,7 @@ public String getPath() { protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException { JsonObject input = InputParser.parseJsonObjectOrThrowError(req); String iss = InputParser.parseStringOrThrowError(input, "iss", false); // input validation - JsonObject bodyFromSDK = InputParser.parseJsonObjectOrThrowError(input, "body", false); + JsonObject bodyFromSDK = InputParser.parseJsonObjectOrThrowError(input, "inputBody", false); Boolean useStaticKeyInput = InputParser.parseBooleanOrThrowError(input, "useStaticSigningKey", true);