Use stable get_login_token and remove unstable MSC3882 support (#11001)
* Support for stable MSC3882 get_login_token * Fix unstable name type * Remove tests for unstable MSC3882 * Fix up tests
This commit is contained in:
parent
0ab51bc59d
commit
4fd8ab933a
5 changed files with 23 additions and 81 deletions
|
@ -89,8 +89,7 @@ describe("<LoginWithQR />", () => {
|
|||
jest.spyOn(MSC3906Rendezvous.prototype, "verifyNewDeviceOnExistingDevice").mockResolvedValue(undefined);
|
||||
client.requestLoginToken.mockResolvedValue({
|
||||
login_token: "token",
|
||||
expires_in: 1000, // this is as per MSC3882 r0
|
||||
expires_in_ms: 1000 * 1000, // this is as per MSC3882 r1
|
||||
expires_in_ms: 1000 * 1000,
|
||||
} as LoginTokenPostResponse); // we force the type here so that it works with versions of js-sdk that don't have r1 support yet
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue