# @types/sasl-scram-sha-1

> TypeScript definitions for sasl-scram-sha-1

Latest version **1.2.4** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/sasl-scram-sha-1
pnpm add @types/sasl-scram-sha-1
yarn add @types/sasl-scram-sha-1
bun add @types/sasl-scram-sha-1
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2023-11-07 |
| First published | 2018-12-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51441 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/sasl-scram-sha-1
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sasl-scram-sha-1
- npm.io page: https://npm.io/package/@types/sasl-scram-sha-1

## Dependencies (1)

- [@types/saslmechanisms](https://npm.io/package/@types/saslmechanisms.md) *

## Recent versions

- 1.2.4 (latest) — 2023-11-07
- 1.2.1 (ts3.6) — 2021-07-06
- 1.2.0 (ts2.0) — 2018-12-08
- 1.2.3 — 2023-10-18
- 1.2.2 — 2023-09-25

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/sasl-scram-sha-1/index.d.ts)
````ts
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
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [@types/saslmechanisms](https://npmjs.com/package/@types/saslmechanisms)

# Credits
These definitions were written by [BendingBender](https://github.com/BendingBender).

---
_Source: https://npm.io/package/@types/sasl-scram-sha-1 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
