mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
return promise from _createSessionAfterAuth
This commit is contained in:
parent
4d5f202d94
commit
d37965ef91
@ -151,7 +151,7 @@ export class Client {
|
|||||||
* `homeserver` won't be resolved or normalized using this method,
|
* `homeserver` won't be resolved or normalized using this method,
|
||||||
* use `lookupHomeserver` first if needed (not needed after registration) */
|
* use `lookupHomeserver` first if needed (not needed after registration) */
|
||||||
async startWithAuthData({accessToken, deviceId, userId, homeserver}) {
|
async startWithAuthData({accessToken, deviceId, userId, homeserver}) {
|
||||||
this._platform.logger.run("startWithAuthData", async (log) => {
|
await this._platform.logger.run("startWithAuthData", async (log) => {
|
||||||
await this._createSessionAfterAuth({accessToken, deviceId, userId, homeserver}, true, log);
|
await this._createSessionAfterAuth({accessToken, deviceId, userId, homeserver}, true, log);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user