mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-14 13:43:51 +01:00
Rename get_refresh_token_for_user_id
to create_refresh_token_for_user_id
(#11370)
This commit is contained in:
parent
539e441399
commit
433ee159cb
3 changed files with 4 additions and 3 deletions
1
changelog.d/11370.misc
Normal file
1
changelog.d/11370.misc
Normal file
|
@ -0,0 +1 @@
|
|||
Rename `get_refresh_token_for_user_id` to `create_refresh_token_for_user_id` to better describe what it does.
|
|
@ -790,7 +790,7 @@ class AuthHandler:
|
|||
(
|
||||
new_refresh_token,
|
||||
new_refresh_token_id,
|
||||
) = await self.get_refresh_token_for_user_id(
|
||||
) = await self.create_refresh_token_for_user_id(
|
||||
user_id=existing_token.user_id, device_id=existing_token.device_id
|
||||
)
|
||||
access_token = await self.create_access_token_for_user_id(
|
||||
|
@ -832,7 +832,7 @@ class AuthHandler:
|
|||
|
||||
return True
|
||||
|
||||
async def get_refresh_token_for_user_id(
|
||||
async def create_refresh_token_for_user_id(
|
||||
self,
|
||||
user_id: str,
|
||||
device_id: str,
|
||||
|
|
|
@ -813,7 +813,7 @@ class RegistrationHandler:
|
|||
(
|
||||
refresh_token,
|
||||
refresh_token_id,
|
||||
) = await self._auth_handler.get_refresh_token_for_user_id(
|
||||
) = await self._auth_handler.create_refresh_token_for_user_id(
|
||||
user_id,
|
||||
device_id=registered_device_id,
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue