simple-peer icon indicating copy to clipboard operation
simple-peer copied to clipboard

Is it possible to provide a token in simple-peer opts

Open junoriosity opened this issue 3 years ago • 3 comments

What version of this package are you using? 9.11.1

What problem do you want to solve? Since we want to restrict access to our WebRTC service, we were wondering whether it would be possible to provide a token (like from Auth0 or so) via simple-peer opts (https://github.com/feross/simple-peer#peer--new-peeropts).

However, we were unable to find out whether it is possible. Hence, it would be great if you could support us here. 😀

junoriosity avatar Nov 03 '22 15:11 junoriosity

Perhaps you could implement this in your signaling layer instead?

jzombie avatar Nov 08 '22 00:11 jzombie

Hi @jzombie

many thanks for getting back to me.

Specifically my question relates to the following signaling server and I suspect I have to make some modifications here (they use your package), but I am unsure what I would have to do exactly.

Would be terrific, if you could help me here! 😀

junoriosity avatar Nov 08 '22 06:11 junoriosity

@junoriosity It is not my package. I am just advising on my own accord.

With that in mind all I can do is point you to the docs here: https://nodejs.org/api/http.html#httpcreateserveroptions-requestlistener

jzombie avatar Nov 08 '22 13:11 jzombie