1.2.4 • Published 7 months ago

@types/sasl-scram-sha-1 v1.2.4

Weekly downloads
67
License
MIT
Repository
github
Last release
7 months ago

Installation

npm install --save @types/sasl-scram-sha-1

Summary

This package contains type definitions for sasl-scram-sha-1 (https://github.com/legastero/js-sasl-scram-sha-1).

Details

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

index.d.ts

// Type definitions for sasl-scram-sha-1 1.2
// Project: https://github.com/legastero/js-sasl-scram-sha-1
// Definitions by: BendingBender <https://github.com/BendingBender>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import { Mechanism } from 'saslmechanisms';

export = ScramSha1Mechanism;

declare class ScramSha1Mechanism implements Mechanism {
    static Mechanism: typeof ScramSha1Mechanism;
    static prototype: {
        name: 'SCRAM-SHA-1';
        clientFirst: true;
    };

    name: 'SCRAM-SHA-1';
    clientFirst: true;

    constructor(options?: ScramSha1Mechanism.Options);

    response(cred: ScramSha1Mechanism.Credentials): string;

    challenge(chal: string): this;
}

declare namespace ScramSha1Mechanism {
    interface Options {
        genNonce?: (() => number) | undefined;
    }

    interface Credentials {
        authzid?: string | undefined;
        username?: string | undefined;
        password?: string | undefined;
        salt?: string | undefined;
        saltedPassword?: string | undefined;
        clientKey?: string | undefined;
        serverKey?: string | undefined;
    }
}

Additional Details

Credits

These definitions were written by BendingBender.

1.2.4

7 months ago

1.2.3

7 months ago

1.2.2

8 months ago

1.2.1

3 years ago

1.2.0

5 years ago