managarten/packages/better-auth-types/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

35 lines
629 B
JSON

{
"name": "@manacore/better-auth-types",
"version": "1.0.0",
"description": "Centralized Better Auth type definitions for the Mana Core monorepo",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"type": "module",
"files": [
"dist"
],
"scripts": {
"build": "tsc",
"clean": "rm -rf dist",
"type-check": "tsc --noEmit"
},
"peerDependencies": {
"better-auth": "^1.4.0"
},
"peerDependenciesMeta": {
"better-auth": {
"optional": true
}
},
"devDependencies": {
"typescript": "^5.7.2"
},
"keywords": [
"manacore",
"better-auth",
"types",
"authentication",
"jwt"
],
"license": "MIT"
}