summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
authorreivilibre <oliverw@matrix.org>2021-11-18 14:45:38 +0000
committerGitHub <noreply@github.com>2021-11-18 14:45:38 +0000
commit433ee159cbc89f5f00a6c5ef7849007a81d58baf (patch)
treec0ce224171c0a771907ec1227f2708927529c621 /synapse/handlers/auth.py
parentUse auto_attribs for RefreshTokenLookupResult (#11386) (diff)
downloadsynapse-433ee159cbc89f5f00a6c5ef7849007a81d58baf.tar.xz
Rename `get_refresh_token_for_user_id` to `create_refresh_token_for_user_id` (#11370)
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r--synapse/handlers/auth.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index b2c84a0fce..4b66a9862f 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -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,