MCPcopy Create free account
hub / github.com/authlib/authlib / generate_token

Function generate_token

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

Source from the content-addressed store, hash-verified

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

Callers 15

get_jtiMethod · 0.90
_signFunction · 0.90
signMethod · 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

Calls

no outgoing calls