forked from mystiq/hydrogen-web
Guest registration / login
This commit is contained in:
parent
8fbde16978
commit
a421d2ddc7
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue