MCPcopy
hub / github.com/authlib/authlib / decode_payload

Function decode_payload

authlib/jose/rfc7519/jwt.py:117–124  ·  view source on GitHub ↗
(bytes_payload)

Source from the content-addressed store, hash-verified

115
116
117def decode_payload(bytes_payload):
118 try:
119 payload = json_loads(to_unicode(bytes_payload))
120 except ValueError as exc:
121 raise DecodeError("Invalid payload value") from exc
122 if not isinstance(payload, dict):
123 raise DecodeError("Invalid payload type")
124 return payload
125
126
127def prepare_raw_key(raw):

Callers

nothing calls this directly

Calls 3

json_loadsFunction · 0.90
to_unicodeFunction · 0.90
DecodeErrorClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…