MCPcopy
hub / github.com/authlib/authlib / generate_token

Function generate_token

authlib/common/security.py:8–10  ·  view source on GitHub ↗
(length=30, chars=UNICODE_ASCII_CHARACTER_SET)

Source from the content-addressed store, hash-verified

6
7
8def generate_token(length=30, chars=UNICODE_ASCII_CHARACTER_SET):
9 rand = random.SystemRandom()
10 return "".join(rand.choice(chars) for _ in range(length))
11
12
13def is_secure_transport(uri):

Callers 15

get_jtiMethod · 0.90
_signFunction · 0.90
generate_device_codeMethod · 0.90
create_string_user_codeFunction · 0.90
create_digital_user_codeFunction · 0.90
generate_client_idMethod · 0.90
token_generatorMethod · 0.90
secret_generatorMethod · 0.90

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…