MCPcopy
hub / github.com/authlib/authlib / to_native

Function to_native

authlib/common/encoding.py:26–29  ·  view source on GitHub ↗
(x, encoding="ascii")

Source from the content-addressed store, hash-verified

24
25
26def to_native(x, encoding="ascii"):
27 if isinstance(x, str):
28 return x
29 return x.decode(encoding)
30
31
32def json_loads(s):

Callers 6

refresh_tokenMethod · 0.90
wrapMethod · 0.90
generate_id_tokenFunction · 0.90
__call__Method · 0.90
prepareMethod · 0.90

Calls 1

decodeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…