MCPcopy Create free account
hub / github.com/Tong89/smartNode / create_access_token

Function create_access_token

backend/auth.py:50–51  ·  view source on GitHub ↗
(sub, role)

Source from the content-addressed store, hash-verified

48
49
50def create_access_token(sub, role):
51 return create_token(sub, role, "access", ACCESS_TTL)
52
53
54def create_refresh_token(sub, role):

Callers 3

auth_loginFunction · 0.90
auth_refreshFunction · 0.90
_admin_headersMethod · 0.90

Calls 1

create_tokenFunction · 0.85

Tested by 1

_admin_headersMethod · 0.72