We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 218e247 commit a7fe0e3Copy full SHA for a7fe0e3
api/services/plugin/oauth_service.py
@@ -47,7 +47,9 @@ def use_proxy_context(context_id: str):
47
if not context_id:
48
raise ValueError("context_id is required")
49
# get data from redis
50
- data = redis_client.getdel(f"{OAuthProxyService.__KEY_PREFIX__}{context_id}")
+ key = f"{OAuthProxyService.__KEY_PREFIX__}{context_id}"
51
+ data = redis_client.get(key)
52
if not data:
53
raise ValueError("context_id is invalid")
54
+ redis_client.delete(key)
55
return json.loads(data)
0 commit comments