MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / __init__

Method __init__

couchbase/auth.py:117–126  ·  view source on GitHub ↗

JwtAuthenticator instance.

(self, token  # type: str
                 )

Source from the content-addressed store, hash-verified

115 """
116
117 def __init__(self, token # type: str
118 ):
119 """JwtAuthenticator instance."""
120 if not isinstance(token, str):
121 msg = 'The token must be a str.'
122 raise InvalidArgumentException(msg)
123
124 self._token = token
125
126 super().__init__(**self.as_dict())
127
128 def valid_keys(self):
129 return ['jwt_token']

Callers 2

__init__Method · 0.45
__init__Method · 0.45

Calls 2

as_dictMethod · 0.95

Tested by

no test coverage detected