# @graywolfai/firebase-express-jwt

> [![@graywolfai/firebase-express-jwt](https://badge.fury.io/js/%40graywolfai%2Ffirebase-express-jwt.svg)](https://badge.fury.io/js/%40graywolfai%2Ffirebase-express-jwt)

Latest version **0.1.0** (published 2020-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @graywolfai/firebase-express-jwt
pnpm add @graywolfai/firebase-express-jwt
yarn add @graywolfai/firebase-express-jwt
bun add @graywolfai/firebase-express-jwt
```

## Health

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

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

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-08-28 |
| First published | 2020-08-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Jacob Smith |
| Maintainers | msampson, jsmith21 |
| Keywords | express, firebase, middleware, jwt, token, validation |

## Links

- npm: https://www.npmjs.com/package/@graywolfai/firebase-express-jwt
- npm.io page: https://npm.io/package/@graywolfai/firebase-express-jwt

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2020-08-28

## README

[![@graywolfai/firebase-express-jwt](https://badge.fury.io/js/%40graywolfai%2Ffirebase-express-jwt.svg)](https://badge.fury.io/js/%40graywolfai%2Ffirebase-express-jwt)

# firebase-express-jwt
Express middleware for Firebase to validate the JWT token.

## Usage
```
npm i @graywolfai/firebase-express-jwt
```

Requests that go to handlers that use this middleware should have an `Authorization: Bearer <TOKEN>`. If the validation fails for any reason, a response with a status `401` is returned (see `index.ts` for details). If validation succeeds, the decoded `user` (`admin.auth.DecodedIdToken`) is placed in the request object.

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