From a421d2ddc7f55b8a54917cc7f71a52152d499231 Mon Sep 17 00:00:00 2001 From: Richard Lewis Date: Fri, 26 Nov 2021 12:56:52 +0000 Subject: [PATCH] Guest registration / login --- src/matrix/net/HomeServerApi.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/matrix/net/HomeServerApi.js b/src/matrix/net/HomeServerApi.js index 4b53b28b..94d18b3c 100644 --- a/src/matrix/net/HomeServerApi.js +++ b/src/matrix/net/HomeServerApi.js @@ -149,6 +149,12 @@ export class HomeServerApi { "initial_device_display_name": initialDeviceDisplayName }, options); } + + guestLogin(initialDeviceDisplayName, options = null) { + return this._unauthedRequest("POST", this._url(`/register`), {kind: 'guest'}, { + "initial_device_display_name": initialDeviceDisplayName + }, options); + } tokenLogin(loginToken, txnId, initialDeviceDisplayName, options = null) { return this._unauthedRequest("POST", this._url("/login"), null, {