1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-05 17:02:07 +03:00
Commit Graph

14 Commits

Author SHA1 Message Date
Janne Mareike Koschinski
a9516d047f types: improve types for registration calls (#2390) 2022-05-20 16:34:28 +01:00
Janne Mareike Koschinski
923ff4b282 registration: add function to re-request email token (#2357) 2022-05-11 13:17:36 +02:00
Callum Brown
378802a5ab Stabilise token authenticated registration support (#2181)
* Stabilise token authenticated registration support

Token authenticated registration was added to the Matrix specification in v1.2:
https://spec.matrix.org/v1.2/client-server-api/#token-authenticated-registration

Signed-off-by: Callum Brown <callum@calcuode.com>

* Backwards compatibility with unstable auth type

Servers are not yet widely updated with support for the stable
version of the registration token UIA type.
Clients should check if the authentication type is either
`RegistrationToken` or `UnstableRegistrationToken`.

Signed-off-by: Callum Brown <callum@calcuode.com>
2022-04-08 22:53:57 -06:00
Michael Telatynski
feb83ba161 Convert http-api to Typescript (#2063) 2021-12-14 15:34:50 +00:00
Michael Telatynski
f8097221e6 Improve typing (#2055) 2021-12-09 14:22:58 +00:00
Callum Brown
95e7a76ba9 Finish adding registration token UIAA type (#2048)
Signed-off-by: Callum Brown <callum@calcuode.com>
2021-12-08 19:38:22 -07:00
Callum Brown
f41d815aa6 Add registration token UIA type (#2020) 2021-11-15 09:16:23 +00:00
Faye Duxovni
50332c4999 End authentication attempt immediately if we couldn't find an appropriate flow (#2008)
If `doRequest()` in `interactive-auth.ts` fails to obtain an appropriate authentication flow, it should return immediately after rejecting the promise.  If it continues, it'll attempt to check `chosenFlow.stages`, which will cause an error because `chosenFlow` is `null`.  This was breaking the interactive auth spec tests with Node 16.
2021-11-02 10:40:46 -04:00
Michael Telatynski
69ba32683c Iterate PR based on feedback 2021-08-11 21:45:51 +01:00
Michael Telatynski
a531446396 tidy a bit more 2021-08-10 10:46:13 +01:00
Michael Telatynski
f876c35283 Fix some bad conversion artifacts 2021-08-10 10:34:05 +01:00
Michael Telatynski
1bcec53c6b delint 2021-08-10 10:22:40 +01:00
Michael Telatynski
c2b5b14d26 Merge branch 'develop' of github.com:matrix-org/matrix-js-sdk into t3chguy/ts/12
 Conflicts:
	src/client.ts
	src/interactive-auth.ts
	src/models/search-result.ts
2021-07-23 23:46:15 +01:00
Michael Telatynski
e775bcac3c Convert SearchResult, InteractiveAuth, PushProcessor and Scheduler to Typescript 2021-07-07 11:08:54 +01:00