MCPcopy
hub / github.com/redis/redis-py / re_auth_callback

Method re_auth_callback

tests/test_credentials.py:338–344  ·  view source on GitHub ↗
(token)

Source from the content-addressed store, hash-verified

336 auth_token = None
337
338 def re_auth_callback(token):
339 nonlocal auth_token
340 auth_token = token
341 with mock_pool._lock:
342 for conn in mock_pool._available_connections:
343 conn.send_command("AUTH", token.try_get("oid"), token.get_value())
344 conn.read_response()
345
346 mock_pool.re_auth_callback = re_auth_callback
347

Callers

nothing calls this directly

Calls 5

send_commandMethod · 0.45
try_getMethod · 0.45
get_valueMethod · 0.45
read_responseMethod · 0.45
call_with_retryMethod · 0.45

Tested by

no test coverage detected