# @apimatic/authentication-adapters

> This package provides pluggable adapters for different authentication schemes.

Latest version **0.5.14** (published 2025-11-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install @apimatic/authentication-adapters
pnpm add @apimatic/authentication-adapters
yarn add @apimatic/authentication-adapters
bun add @apimatic/authentication-adapters
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.5.14 |
| Published | 2025-11-04 |
| First published | 2023-01-31 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14.15.0 \|\| >=16.0.0 |
| Dependencies | 4 |
| Unpacked size | 31.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | APIMatic Ltd. |
| Maintainers | apimaticdev, mehdi991, maryamadnan3, hamzamahmood, aliasghar1070, talhafaheem |

## Links

- npm: https://www.npmjs.com/package/@apimatic/authentication-adapters
- Repository: https://github.com/apimatic/apimatic-js-runtime
- Homepage: https://github.com/apimatic/apimatic-js-runtime#readme
- Issues: https://github.com/apimatic/apimatic-js-runtime/issues
- npm.io page: https://npm.io/package/@apimatic/authentication-adapters

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [@apimatic/http-query](https://npm.io/package/@apimatic/http-query.md) ^0.3.9
- [@apimatic/http-headers](https://npm.io/package/@apimatic/http-headers.md) ^0.3.8
- [@apimatic/core-interfaces](https://npm.io/package/@apimatic/core-interfaces.md) ^0.2.14

## Recent versions

- 0.5.14 (latest) — 2025-11-04
- 0.5.13 — 2025-09-30
- 0.5.13-alpha.1 — 2025-09-29
- 0.5.13-alpha.0 — 2025-09-29
- 0.5.12 — 2025-09-04
- 0.5.11 — 2025-08-13
- 0.5.10 — 2025-07-15
- 0.5.9 — 2025-07-11
- 0.5.8 — 2025-05-15
- 0.5.7 — 2025-05-12
- 0.5.6 — 2024-12-12
- 0.5.5 — 2024-09-27
- 0.5.4 — 2024-07-22
- 0.5.3 — 2024-05-28
- 0.5.2 — 2023-11-30
- … 6 more at https://npm.io/package/@apimatic/authentication-adapters/versions

## README

# APIMatic Authentication Adapters Library for JavaScript SDKs

This package provides pluggable adapters for different authentication schemes.

The exported functionality includes:

* **Basic Authentication**: Username and password authentication with automatic Base64 encoding.
* **API Key Authentication**: Support for API keys via headers or query parameters.
* **Access Token Authentication**: Bearer token authentication suitable for OAuth and similar token schemes.
* **Custom Query Authentication**: Custom query parameter authentication with configurable parameter names.
* **Custom Header Authentication**: Custom header authentication with configurable header names.
* **Composite Authentication**: Support for complex authentication schemes with AND/OR logic combinations.
* **No Authentication**: Pass-through adapter for endpoints that do not require authentication.

This library is used by JavaScript SDKs generated by the [APIMatic Code Generator](http://www.apimatic.io). For details on supported platforms and build artifacts, see the [Build and Usage Section](https://github.com/apimatic/apimatic-js-runtime?tab=readme-ov-file#builds-and-usage).

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