Skip to content

Commit

Permalink
Stabilise token authenticated registration support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
govynnus committed Feb 16, 2022
1 parent e86d886 commit b84ecc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/interactive-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export enum AuthType {
Sso = "m.login.sso",
SsoUnstable = "org.matrix.login.sso",
Dummy = "m.login.dummy",
RegistrationToken = "org.matrix.msc3231.login.registration_token",
RegistrationToken = "m.login.registration_token",
}

export interface IAuthDict {
Expand All @@ -79,7 +79,8 @@ export interface IAuthDict {
// eslint-disable-next-line camelcase
threepid_creds?: any;
threepidCreds?: any;
registrationToken?: string;
// For m.login.registration_token type
token?: string;
}

class NoAuthFlowFoundError extends Error {
Expand Down

0 comments on commit b84ecc4

Please sign in to comment.