diff options
author | reivilibre <oliverw@matrix.org> | 2021-11-17 14:10:57 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-17 14:10:57 +0000 |
commit | 0d86f6334ae5dc6be76b5bf2eea9ac5677fb89e8 (patch) | |
tree | c9a42469768d6c6bfa9a90e751079966b21a909f /synapse/handlers/auth.py | |
parent | Fix running complement.sh script. (#11368) (diff) | |
download | synapse-0d86f6334ae5dc6be76b5bf2eea9ac5677fb89e8.tar.xz |
Rename `get_access_token_for_user_id` method to `create_access_token_for_user_id` (#11369)
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r-- | synapse/handlers/auth.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py index b62e13b725..b2c84a0fce 100644 --- a/synapse/handlers/auth.py +++ b/synapse/handlers/auth.py @@ -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], |