mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 12:37:22 +01:00
Guest registration / login
This commit is contained in:
parent
8fbde16978
commit
a421d2ddc7
@ -150,6 +150,12 @@ export class HomeServerApi {
|
|||||||
}, options);
|
}, 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) {
|
tokenLogin(loginToken, txnId, initialDeviceDisplayName, options = null) {
|
||||||
return this._unauthedRequest("POST", this._url("/login"), null, {
|
return this._unauthedRequest("POST", this._url("/login"), null, {
|
||||||
"type": "m.login.token",
|
"type": "m.login.token",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user