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

Method set_token

authlib/oauth2/auth.py:98–99  ·  view source on GitHub ↗
(self, token)

Source from the content-addressed store, hash-verified

96 self.hooks = set()
97
98 def set_token(self, token):
99 self.token = OAuth2Token.from_dict(token)
100
101 def prepare(self, uri, headers, body):
102 token_type = self.token.get("token_type", self.DEFAULT_TOKEN_TYPE)

Callers 2

tokenMethod · 0.80
tokenMethod · 0.80

Calls 1

from_dictMethod · 0.45

Tested by

no test coverage detected