MCPcopy Create free account
hub / github.com/authlib/authlib / get_temporary_credential

Function get_temporary_credential

authlib/integrations/flask_oauth1/cache.py:23–29  ·  view source on GitHub ↗
(oauth_token)

Source from the content-addressed store, hash-verified

21 return TemporaryCredential(token)
22
23 def get_temporary_credential(oauth_token):
24 if not oauth_token:
25 return None
26 key = key_prefix + oauth_token
27 value = cache.get(key)
28 if value:
29 return TemporaryCredential(value)
30
31 def delete_temporary_credential(oauth_token):
32 if oauth_token:

Callers

nothing calls this directly

Calls 2

TemporaryCredentialClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected