JupyterHub behaves differently when this URL is requested /user/<username>/api/contents depending on the user exists or not. This URL is reachable by unauthenticated users.