mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 21:21:10 +02:00
Replace HTTP POST to /api/v1/auth/validate with local JWT verification using jose + createRemoteJWKSet. Eliminates ~5-20ms HTTP roundtrip per API request across all backends. JWKS cached automatically by jose. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
37 lines
770 B
JSON
37 lines
770 B
JSON
{
|
|
"name": "@manacore/shared-nestjs-auth",
|
|
"version": "1.0.0",
|
|
"description": "Shared authentication utilities for NestJS backends - JWT validation via Mana Core Auth",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"clean": "rm -rf dist",
|
|
"prepublishOnly": "pnpm build",
|
|
"lint": "eslint ."
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"dependencies": {
|
|
"jose": "^5.0.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@nestjs/common": "^10.0.0 || ^11.0.0",
|
|
"@nestjs/config": "^3.0.0 || ^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@nestjs/common": "^10.0.0",
|
|
"@nestjs/config": "^3.0.0",
|
|
"@types/node": "^20.0.0",
|
|
"typescript": "^5.0.0"
|
|
},
|
|
"keywords": [
|
|
"nestjs",
|
|
"auth",
|
|
"jwt",
|
|
"manacore"
|
|
],
|
|
"author": "Mana Core Team",
|
|
"license": "MIT"
|
|
}
|