# @commercetools/sdk-middleware-auth

> Middleware for different authentication flows of commercetools platform API, to use with @commercetools/sdk-client

Latest version **8.0.1** (published 2025-04-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @commercetools/sdk-middleware-auth
pnpm add @commercetools/sdk-middleware-auth
yarn add @commercetools/sdk-middleware-auth
bun add @commercetools/sdk-middleware-auth
```

## Health

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

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 8.0.1 |
| Published | 2025-04-25 |
| First published | 2016-12-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=18 |
| Dependencies | 2 |
| Unpacked size | 70.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 77 |
| Author | Nicola Molinari |
| Maintainers | commercetools-admin, emmenko, hajoeichler, yanns, tdeekens, timonrey, vineetkumarkushwaha, markusazer, jherey, danrleyt, jenschude, chukwuemeka |
| Keywords | commercetools, sdk, middleware, auth, oauth |

## Links

- npm: https://www.npmjs.com/package/@commercetools/sdk-middleware-auth
- Repository: https://github.com/commercetools/nodejs
- Homepage: https://commercetools.github.io/nodejs/
- Issues: https://github.com/commercetools/nodejs/issues
- npm.io page: https://npm.io/package/@commercetools/sdk-middleware-auth

## Dependencies (2)

- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.7
- [@commercetools/sdk-middleware-http](https://npm.io/package/@commercetools/sdk-middleware-http.md) 8.0.1

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 8.0.1 (latest) — 2025-04-25
- 5.1.7 (patch-version-5-1-7) — 2019-10-11
- 8.0.0 — 2025-03-07
- 7.0.1 — 2022-08-23
- 7.0.0 — 2022-08-17
- 6.2.1 — 2022-02-09
- 6.2.0 — 2021-11-17
- 6.1.4 — 2020-06-03
- 6.1.3 — 2020-04-03
- 6.1.2 — 2020-03-30
- 6.1.1 — 2020-03-25
- 6.1.0 — 2020-03-25
- 6.0.5 — 2020-03-11
- 6.0.4 — 2020-01-20
- 6.0.3 — 2020-01-13
- … 47 more at https://npm.io/package/@commercetools/sdk-middleware-auth/versions

## README

# commercetools-sdk-middlware-auth

<div style="background-color: yellow; color: black; padding: 10px; text-align: center; font-weight: bold;">
  <h2>⚠️ In Maintenance Mode ⚠️</h2>
  <p>
    This package has been replaced by the <a href="https://docs.commercetools.com/sdk/typescript-sdk">TypeScript SDK</a> is in maintenance mode as such this tool will no longer receive new features or bug fixes.
  </p>
  <p>
    We recommend to use the <a href="https://docs.commercetools.com/sdk/typescript-sdk">TypeScript SDK</a> for any new implementation and plan migrating to it.
  </p>
</div>

Auth middlewares collection for usage with `@commercetools/sdk-client`

https://commercetools.github.io/nodejs/sdk/api/sdkMiddlewareAuth

### Install

```bash
npm install --save @commercetools/sdk-middleware-auth
```

---
_Source: https://npm.io/package/@commercetools/sdk-middleware-auth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
