Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AuthenticationRegistrationToken #371

Open
famedly-bot opened this issue Apr 16, 2023 · 1 comment
Open

Add support for AuthenticationRegistrationToken #371

famedly-bot opened this issue Apr 16, 2023 · 1 comment

Comments

@famedly-bot
Copy link

In GitLab by @gimmix on Apr 16, 2023, 14:28

Currently there doesn't seem to be a AuthenticationRegistrationToken for m.login.registration_token out of the box.
It is easy enough to implement yourself but might be nice if it where alreay included.

This is what my implementation based on the AuthenticationToken looks like:

class AuthenticationRegistrationToken extends AuthenticationToken {
  AuthenticationRegistrationToken({required super.token, super.session, super.txnId});

  @override
  Map<String, dynamic> toJson() {
    var json = super.toJson();
    json.addAll({
      "type": "m.login.registration_token",
    });
    return json;
  }
}
@famedly-bot
Copy link
Author

In GitLab by @kristiangronas on May 4, 2023, 23:24

mentioned in merge request famedly/company/frontend/libraries/matrix_api_lite!94

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants