Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/authlib/authlib
/ json_b64encode
Function
json_b64encode
authlib/common/encoding.py:63–66 ·
view source on GitHub ↗
(text)
Source
from the content-addressed store, hash-verified
61
62
63
def
json_b64encode(text):
64
if
isinstance(text, dict):
65
text = json_dumps(text)
66
return
urlsafe_b64encode(to_bytes(text))
Callers
7
serialize_compact
Method · 0.90
serialize_json
Method · 0.90
_sign
Method · 0.90
serialize_compact
Method · 0.90
serialize_json
Method · 0.90
test_deserialize_json_fails_if_protected_header_contains_unknown_field_while_private_fields_restricted
Function · 0.90
test_ecdh_1pu_key_agreement_computation_appx_b
Function · 0.90
Calls
3
json_dumps
Function · 0.85
urlsafe_b64encode
Function · 0.85
to_bytes
Function · 0.85
Tested by
2
test_deserialize_json_fails_if_protected_header_contains_unknown_field_while_private_fields_restricted
Function · 0.72
test_ecdh_1pu_key_agreement_computation_appx_b
Function · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…