Builds the SASL PLAIN response: base64(authzid \0 authcid \0 password).
base64(authzid \0 authcid \0 password)
The authentication identity (typically the JID localpart).
The account password.
The optional authorization identity (empty by default).
The base64 payload for an <auth mechanism='PLAIN'> stanza.
<auth mechanism='PLAIN'>
1.0.4
import { saslPlain } from 'edgeport/xmpp';saslPlain('juliet', 'r0m30'); // base64 of "\0juliet\0r0m30" Copy
import { saslPlain } from 'edgeport/xmpp';saslPlain('juliet', 'r0m30'); // base64 of "\0juliet\0r0m30"
Builds the SASL PLAIN response:
base64(authzid \0 authcid \0 password).