Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
50
def
create_access_token(sub, role):
51
return
create_token(sub, role,
"access"
, ACCESS_TTL)
52
53
54
def
create_refresh_token(sub, role):
Callers
3
auth_login
Function · 0.90
auth_refresh
Function · 0.90
_admin_headers
Method · 0.90
Calls
1
create_token
Function · 0.85
Tested by
1
_admin_headers
Method · 0.72