Jupyterhub API Token: How to get an authenticated token on a running single user server programmatically

I may found the solution, and Understanding token scope difference helps a lot.

c.JupyterHub.load_roles = [
 {
   'name': 'server',
   'scopes': ['all'],
 }
]
1 Like