[Client] Send empty object with request

This commit is contained in:
Christian Pauly 2020-01-13 12:52:08 +00:00
parent 3eced168a6
commit 9b0d746fee
1 changed files with 4 additions and 2 deletions

View File

@ -1056,8 +1056,10 @@ class Client {
/// The generated token is only valid for exchanging for user information from the federation API for OpenID.
Future<OpenIdCredentials> requestOpenIdCredentials() async {
final Map<String, dynamic> 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);
}
}