# @ostro/auth

> Authentication module for OstroJS

Latest version **2.0.0-alpha.2** (published 2026-10-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ostro/auth
pnpm add @ostro/auth
yarn add @ostro/auth
bun add @ostro/auth
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.0.0-alpha.2 |
| Published | 2026-10-22 |
| First published | 2021-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 5 |
| Unpacked size | 137.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 7 |
| Author | amar |
| Maintainers | ostrojs, developeramarkumar |
| Keywords | auth, authentication, api authentication, authentication guard, session authentication |

## Links

- npm: https://www.npmjs.com/package/@ostro/auth
- Repository: https://github.com/ostrojs/auth
- Homepage: https://github.com/ostrojs/auth#readme
- Issues: https://github.com/ostrojs/auth/issues
- npm.io page: https://npm.io/package/@ostro/auth

## Dependencies (5)

- [uid-safe](https://npm.io/package/uid-safe.md) ^2.1.5
- [commander](https://npm.io/package/commander.md) ^15.0.0
- [string-argv](https://npm.io/package/string-argv.md) ^0.3.2
- [@ostro/support](https://npm.io/package/@ostro/support.md) ^2.0.0-alpha.2
- [@ostro/contracts](https://npm.io/package/@ostro/contracts.md) ^2.0.0-alpha.2

## Alternatives

- [@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
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 2.0.0-alpha.2 (latest) — 2026-10-22
- 2.0.0-alpha.1 — 2026-10-22
- 1.0.1 — 2023-12-04
- 1.0.0 — 2022-07-30
- 0.0.0-alpha.4 — 2021-12-26
- 0.0.0-alpha.3 — 2021-12-17
- 0.0.0-alpha.2 — 2021-12-17
- 0.0.0-alpha.1 — 2021-11-16
- 0.0.0-alpha.0 — 2021-11-11

## README

<div align="center">
  <h1>OstroJS Framework</h1>
  
</div>
<br />

<div align="center">
  <h3>OstroJS Auth</h3>
  <p>Authentication Module for OstroJS</p>
</div>

<br />

<div align="center">

![][javascript-image] [![license-image]][license-url] [![nodejs-image]][npm-url]

</div>

<div align="center">
  <h3>
    <a href="https://ostrojs.com">
      Website
    </a>
   
  </h3>
</div>

 
[javascript-image]: https://img.shields.io/badge/JS-javascript-green
[javascript-url]:  "javascript"

[nodejs-image]: https://img.shields.io/badge/node-%3E%3D%2012.0.0-green
[npm-url]: https://npmjs.org/package/@ostro/auth "npm"

[license-image]: https://img.shields.io/github/license/ostrojs/auth
[license-url]: LICENSE.md "license"

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