xmppjs / xmpp.js

XMPP for JavaScript
ISC License
2.18k stars 372 forks source link

custom SASL mechanism #909

Closed viper645 closed 2 years ago

viper645 commented 2 years ago

How can I use custom SASL mechanism not user pass, Because I need to authenticate with 2 jwt tokens.

Screenshot_2_censored_censored

sonnyp commented 2 years ago

You need to write a sasl meechanism compatible with https://github.com/jaredhanson/js-sasl

Then you can do something like client.sasl.use(mySASLMechansim)