mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 20:44:50 -04:00
Rename get_access_token_for_user_id
method to create_access_token_for_user_id
(#11369)
This commit is contained in:
parent
60ecb6b4d4
commit
0d86f6334a
7 changed files with 16 additions and 15 deletions
|
@ -793,7 +793,7 @@ class AuthHandler:
|
|||
) = await self.get_refresh_token_for_user_id(
|
||||
user_id=existing_token.user_id, device_id=existing_token.device_id
|
||||
)
|
||||
access_token = await self.get_access_token_for_user_id(
|
||||
access_token = await self.create_access_token_for_user_id(
|
||||
user_id=existing_token.user_id,
|
||||
device_id=existing_token.device_id,
|
||||
valid_until_ms=valid_until_ms,
|
||||
|
@ -855,7 +855,7 @@ class AuthHandler:
|
|||
)
|
||||
return refresh_token, refresh_token_id
|
||||
|
||||
async def get_access_token_for_user_id(
|
||||
async def create_access_token_for_user_id(
|
||||
self,
|
||||
user_id: str,
|
||||
device_id: Optional[str],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue