# soap-cookie

> Use cookie authentication when using the soap module

Latest version **0.10.1** (published 2015-05-15) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install soap-cookie
pnpm add soap-cookie
yarn add soap-cookie
bun add soap-cookie
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.1 |
| Published | 2015-05-15 |
| First published | 2013-11-06 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Shane A. Stillwell |
| Maintainers | shanestillwell |

## Links

- npm: https://www.npmjs.com/package/soap-cookie
- Repository: https://github.com/shanestillwell/soap-cookie
- Issues: https://github.com/shanestillwell/soap-cookie/issues
- npm.io page: https://npm.io/package/soap-cookie

## Recent versions

- 0.10.1 (latest) — 2015-05-15
- 0.10.0 — 2014-01-04
- 0.9.0 — 2013-11-06

## README

[![Build Status](https://travis-ci.org/shanestillwell/soap-cookie.png?branch=master)](https://travis-ci.org/shanestillwell/soap-cookie)

# SOAP Cookie Authentication

> Use cookies as a security method for [node-soap](https://github.com/milewise/node-soap)

## Install

`npm install soap-cookie`

## Usage

```javascript

var soap = require('soap'),
    Cookie = require('soap-cookie');

soap.createClient(WSDL, function(err, client) {
  client.login(USERNAME, PASSWORD, function(err, response) {

    // if login is successful
    client.setSecurity(new Cookie(client.lastResponseHeaders));

  });
});
```

Now subsequent SOAP calls will set the `Cookie` header and you'll be a happy chipmunk (except for the fact you have to deal with SOAP in the first place).

---
_Source: https://npm.io/package/soap-cookie · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
