bubenshchykov / ngrok

Expose your localhost to the web. Node wrapper for ngrok.
https://ngrok.com
2.33k stars 317 forks source link

[Bug] Ngrok connect, disconnect then connect again doesn't change token if needed. #321

Closed minsiam closed 7 months ago

minsiam commented 8 months ago

So what I'm doing is,

const url = await ngrok.connect({ authtoken: tokenNgrok, proto: 'http', addr: ports.fileServer });

where tokenNgrok is coming from an express endpoint where you can specify the token on body, so it's different sometimes if needed. And what's happening is that it's always using the first provided token, which it really shouldn't. I think this is a bug and would appreciate if you could take a look.

Thanks