managarten/packages/shared-nestjs-auth/package.json
Wuesteon 26ca921158 feat(auth): add centralized @manacore/better-auth-types package
Create new shared package for Better Auth type definitions:
- UserRole, JWTPayload, CurrentUserData types
- Type guards: isValidUserRole, isValidOrganizationRole
- Utility functions: jwtPayloadToCurrentUser
- userAdditionalFields for client type inference

Migrate shared packages to use centralized types:
- @manacore/shared-auth re-exports from new package
- @manacore/shared-nestjs-auth uses new package as dependency
2025-12-16 02:43:55 +01:00

38 lines
830 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 .",
"type-check": "tsc --noEmit"
},
"files": [
"dist"
],
"dependencies": {
"@manacore/better-auth-types": "workspace:*"
},
"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"
}