From 9b0d746fee3f5ed1579655d61cad08888384d125 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Mon, 13 Jan 2020 12:52:08 +0000 Subject: [PATCH] [Client] Send empty object with request --- lib/src/client.dart | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index c6763c8..c4bb8ed 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -1056,8 +1056,10 @@ class Client { /// The generated token is only valid for exchanging for user information from the federation API for OpenID. Future requestOpenIdCredentials() async { final Map response = await jsonRequest( - type: HTTPType.POST, - action: "/client/r0/user/$userID/openid/request_token"); + type: HTTPType.POST, + action: "/client/r0/user/$userID/openid/request_token", + data: {}, + ); return OpenIdCredentials.fromJson(response); } }