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 923829e44..ee6743681 100644 --- a/src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java +++ b/src/main/java/io/supertokens/webserver/api/oauth/OAuthTokenAPI.java @@ -106,7 +106,7 @@ protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws I String[] parsedHeader = Utils.convertFromBase64(authorizationHeader.replaceFirst("^Basic ", "").trim()).split(":"); clientId = parsedHeader[0]; } else { - clientId = InputParser.parseStringOrThrowError(input, formFields.get("client_id"), false); + clientId = formFields.get("client_id"); } try {