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

Method token

authlib/integrations/flask_client/apps.py:17–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

15class FlaskAppMixin:
16 @property
17 def token(self):
18 attr = f"_oauth_token_{self.name}"
19 token = g.get(attr)
20 if token:
21 return token
22 if self._fetch_token:
23 token = self._fetch_token()
24 self.token = token
25 return token
26
27 @token.setter
28 def token(self, token):

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
_fetch_tokenMethod · 0.45

Tested by

no test coverage detected