File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,13 @@ def _get_tokens(self):
4848 self ._update_current_tokens ()
4949 return super (RedisManagedOAuth2Mixin , self )._get_tokens ()
5050
51- def send_token_request (self , * args , ** kwargs ):
51+ def _store_tokens (self , access_token , refresh_token ):
5252 """
5353 Base class override.
5454 Saves the refreshed tokens in redis.
5555 """
56- tokens = super (RedisManagedOAuth2Mixin , self ).send_token_request (* args , ** kwargs )
57- self ._redis_server .hmset (self ._unique_id , {'access' : tokens [0 ], 'refresh' : tokens [1 ]})
58- return tokens
56+ super (RedisManagedOAuth2Mixin , self )._store_tokens (access_token , refresh_token )
57+ self ._redis_server .hmset (self ._unique_id , {'access' : access_token , 'refresh' : refresh_token })
5958
6059
6160class RedisManagedOAuth2 (RedisManagedOAuth2Mixin ):
You can’t perform that action at this time.
0 commit comments