|
47 | 47 | )
|
48 | 48 | from synapse.metrics import threepid_send_requests
|
49 | 49 | from synapse.push.mailer import Mailer
|
| 50 | +from synapse.types import JsonDict |
50 | 51 | from synapse.util.msisdn import phone_number_to_msisdn
|
51 | 52 | from synapse.util.ratelimitutils import FederationRateLimiter
|
52 | 53 | from synapse.util.stringutils import assert_valid_client_secret, random_string
|
@@ -708,19 +709,22 @@ async def _do_appservice_registration(
|
708 | 709 |
|
709 | 710 | async def _create_registration_details(
|
710 | 711 | self,
|
711 |
| - user_id, |
712 |
| - params, |
713 |
| - is_appservice_ghost=False, |
| 712 | + user_id: str, |
| 713 | + params: JsonDict, |
| 714 | + is_appservice_ghost: bool = False, |
714 | 715 | should_issue_refresh_token: bool = False,
|
715 | 716 | ):
|
716 | 717 | """Complete registration of newly-registered user
|
717 | 718 |
|
718 | 719 | Allocates device_id if one was not given; also creates access_token.
|
719 | 720 |
|
720 | 721 | Args:
|
721 |
| - (str) user_id: full canonical @user:id |
722 |
| - (object) params: registration parameters, from which we pull |
723 |
| - device_id, initial_device_name and inhibit_login |
| 722 | + user_id: full canonical @user:id |
| 723 | + params: registration parameters, from which we pull device_id, |
| 724 | + initial_device_name and inhibit_login |
| 725 | + is_appservice_ghost |
| 726 | + should_issue_refresh_token: True if this registration should issue |
| 727 | + a refresh token alongside the access token. |
724 | 728 | Returns:
|
725 | 729 | dictionary for response from /register
|
726 | 730 | """
|
|
0 commit comments