# @types/ag-auth

> TypeScript definitions for ag-auth

Latest version **1.0.3** (published 2023-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/ag-auth
pnpm add @types/ag-auth
yarn add @types/ag-auth
bun add @types/ag-auth
```

## 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.0.3 |
| Published | 2023-11-06 |
| First published | 2021-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51439 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/ag-auth
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ag-auth
- npm.io page: https://npm.io/package/@types/ag-auth

## Dependencies (1)

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

## Recent versions

- 1.0.3 (latest) — 2023-11-06
- 1.0.0 (ts3.7) — 2021-09-04
- 1.0.2 — 2023-10-17
- 1.0.1 — 2023-09-22

## README

# Installation
> `npm install --save @types/ag-auth`

# Summary
This package contains type definitions for ag-auth (https://github.com/SocketCluster/ag-auth).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ag-auth.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ag-auth/index.d.ts)
````ts
import { Jwt, Secret, SignOptions, VerifyOptions } from "jsonwebtoken";

declare class AuthEngine {
    verifyToken(signedToken: string | null, key: Secret, options?: VerifyOptions): Promise<Jwt>;
    signToken(token: string | object | Buffer, key: Secret, options?: SignOptions): Promise<string | undefined>;
}

export = AuthEngine;

````

### Additional Details
 * Last updated: Mon, 06 Nov 2023 22:41:04 GMT
 * Dependencies: [@types/jsonwebtoken](https://npmjs.com/package/@types/jsonwebtoken)

# Credits
These definitions were written by [Daniel Rose](https://github.com/DanielRose).

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