edgeport - v1.0.6
    Preparing search index...

    Function saslPlain

    • Builds the SASL PLAIN response: base64(authzid \0 authcid \0 password).

      Parameters

      • authcid: string

        The authentication identity (typically the JID localpart).

      • password: string

        The account password.

      • authzid: string = ''

        The optional authorization identity (empty by default).

      Returns string

      The base64 payload for an <auth mechanism='PLAIN'> stanza.

      1.0.4

      import { saslPlain } from 'edgeport/xmpp';

      saslPlain('juliet', 'r0m30'); // base64 of "\0juliet\0r0m30"