How to set JWT later in app cycle

I’m using and JWT with my app and I followed the docs as noted here:

So the importing and configuring is done in app.module.ts. For and JWT looks like this for the config:

const config: SocketIoConfig = { url: 'https:/', options: { query: 'auth_token=XXXXXXXXXXSUPER_LONGXXXXXXX'  } };

The issue is I need to set the auth_token after a user has logged in and obviously this happens after the app.module.ts cycle. How can I later in the app set the auth_token?

I still have not figured this out if anyone has some ideas.