mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 05:41:09 +02:00
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
38 lines
830 B
JSON
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"
|
|
}
|