diff --git a/src/main/java/io/supertokens/pluginInterface/multitenancy/ThirdPartyConfig.java b/src/main/java/io/supertokens/pluginInterface/multitenancy/ThirdPartyConfig.java index a100096f..d77a3e75 100644 --- a/src/main/java/io/supertokens/pluginInterface/multitenancy/ThirdPartyConfig.java +++ b/src/main/java/io/supertokens/pluginInterface/multitenancy/ThirdPartyConfig.java @@ -152,7 +152,7 @@ public JsonObject toJson() { JsonObject result = new Gson().toJsonTree(this).getAsJsonObject(); // These properties need to retain null values when serialized - if (this.authorizationEndpoint != null) { + if (this.authorizationEndpointQueryParams != null) { result.add("authorizationEndpointQueryParams", new GsonBuilder().serializeNulls().create().toJsonTree(this.authorizationEndpointQueryParams)); } else {