# nestjs-mycard

> Nest.js mycard auth module

Latest version **6.0.0** (published 2026-09-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install nestjs-mycard
pnpm add nestjs-mycard
yarn add nestjs-mycard
bun add nestjs-mycard
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2026-09-07 |
| First published | 2022-03-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | ^20.19.0 \|\| ^22.12.0 \|\| >=24.0.0 |
| Dependencies | 1 |
| Unpacked size | 145.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nanahira |
| Maintainers | nanahira |

## Links

- npm: https://www.npmjs.com/package/nestjs-mycard
- Repository: https://code.moenext.com/mycard/nestjs-mycard
- Issues: https://code.moenext.com/mycard/nestjs-mycard/issues
- npm.io page: https://npm.io/package/nestjs-mycard

## Dependencies (1)

- [nesties](https://npm.io/package/nesties.md) ^2.0.0

## Recent versions

- 6.0.0 (latest) — 2026-09-07
- 5.0.1 — 2026-01-02
- 5.0.0 — 2026-01-02
- 4.0.2 — 2025-04-22
- 4.0.1 — 2025-04-22
- 4.0.0 — 2025-04-22
- 3.0.2 — 2023-01-14
- 3.0.1 — 2023-01-14
- 3.0.0 — 2022-09-27
- 1.0.2 — 2022-03-31
- 1.0.1 — 2022-03-31

## README

# Nestjs Mycard

Nest.js mycard auth module.

## Example

```ts
@Controller()
class AppController {
  @Get('user')
  getUser(@PutMycardUser() user: MycardUser) {
    return user.id;
  }
}
```

## ParamResolver

Refer to `nesties` for how ParamResolver works.

```ts
import { createMycardUserResolver } from "nestjs-mycard";

const mycardUserParamResolver = createMycardUserResolver({
  paramType: 'header',
  paramName: 'x-user-token',
  required: true,
})
```

`createMycardUserResolver` resolves to `MycardUser` object.

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