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

Function _query_access_token

authlib/integrations/django_oauth2/endpoints.py:45–49  ·  view source on GitHub ↗
(token_model, token)

Source from the content-addressed store, hash-verified

43
44
45def _query_access_token(token_model, token):
46 try:
47 return token_model.objects.get(access_token=token)
48 except token_model.DoesNotExist:
49 return None
50
51
52def _query_refresh_token(token_model, token):

Callers 1

query_tokenMethod · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected