diff options
author | David Baker <dave@matrix.org> | 2016-06-02 13:31:45 +0100 |
---|---|---|
committer | David Baker <dave@matrix.org> | 2016-06-02 13:31:45 +0100 |
commit | 4a10510cd5aff790127a185ecefc83b881a717cc (patch) | |
tree | f97be85047a563d33cbd234f36d271147ce664e9 /synapse/rest/client/v2_alpha/tokenrefresh.py | |
parent | Merge pull request #815 from matrix-org/dbkr/email_greeting_not_none (diff) | |
download | synapse-4a10510cd5aff790127a185ecefc83b881a717cc.tar.xz |
Split out the auth handler
Diffstat (limited to 'synapse/rest/client/v2_alpha/tokenrefresh.py')
-rw-r--r-- | synapse/rest/client/v2_alpha/tokenrefresh.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/v2_alpha/tokenrefresh.py b/synapse/rest/client/v2_alpha/tokenrefresh.py index a158c2209a..8270e8787f 100644 --- a/synapse/rest/client/v2_alpha/tokenrefresh.py +++ b/synapse/rest/client/v2_alpha/tokenrefresh.py @@ -38,7 +38,7 @@ class TokenRefreshRestServlet(RestServlet): body = parse_json_object_from_request(request) try: old_refresh_token = body["refresh_token"] - auth_handler = self.hs.get_handlers().auth_handler + auth_handler = self.hs.get_auth_handler() (user_id, new_refresh_token) = yield self.store.exchange_refresh_token( old_refresh_token, auth_handler.generate_refresh_token) new_access_token = yield auth_handler.issue_access_token(user_id) |