When JupyterHub sets up the routes in the CHP and redirects the client to the JupyterLab endpoint after authentication, how does it get the token for the newly launched Jupyter Server?
I am also struggling with this. In my case the token is missing and I’m trying to get it added.
I’m not exactly sure what you’re asking, but there’s a technical description of the login process here:
The token is set using environment variables: Spawners — JupyterHub 2.3.1 documentation
It appears that the token is set by an environment variable: Spawners — JupyterHub 2.3.1 documentation