mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-11 04:27:40 +01:00
Guest registration / login
This commit is contained in:
parent
8fbde16978
commit
a421d2ddc7
@ -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, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user