npm.io
0.1.4 • Published 2 years ago

@types/sasl-plain

Licence
MIT
Version
0.1.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/sasl-plain

Summary

This package contains type definitions for sasl-plain (https://github.com/jaredhanson/js-sasl-plain).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sasl-plain.

index.d.ts

import { Mechanism } from "saslmechanisms";

export = PlainMechanism;

declare class PlainMechanism implements Mechanism {
    static Mechanism: typeof PlainMechanism;
    static prototype: {
        name: "PLAIN";
        clientFirst: true;
    };

    name: "PLAIN";
    clientFirst: true;

    response(cred: PlainMechanism.Credentials): string;

    challenge(chal: string): this;
}

declare namespace PlainMechanism {
    interface Credentials {
        authzid?: string | undefined;
        username: string;
        password: string;
    }
}

Additional Details

Credits

These definitions were written by BendingBender.