feat: add CNB login functionality and user management

- Introduced `cnb-login` route to handle user login via CNB token.
- Created `CnbServices` class for managing CNB user interactions.
- Added `findByCnbId` method in the User model to retrieve users by CNB ID.
- Updated error handling to provide more structured error messages.
- Enhanced user creation logic to handle CNB users.
- Added tests for the new CNB login functionality.
This commit is contained in:
2026-02-20 23:30:53 +08:00
parent 1782a9ef19
commit 366a21d621
16 changed files with 392 additions and 40 deletions

View File

@@ -66,12 +66,13 @@
"devDependencies": {
"@aws-sdk/client-s3": "^3.994.0",
"@kevisual/api": "^0.0.52",
"@kevisual/cnb": "^0.0.28",
"@kevisual/context": "^0.0.8",
"@kevisual/local-app-manager": "0.1.32",
"@kevisual/logger": "^0.0.4",
"@kevisual/oss": "0.0.19",
"@kevisual/permission": "^0.0.4",
"@kevisual/router": "0.0.80",
"@kevisual/router": "0.0.83",
"@kevisual/types": "^0.0.12",
"@kevisual/use-config": "^1.0.30",
"@types/archiver": "^7.0.0",
@@ -100,7 +101,7 @@
"inflight": "latest",
"picomatch": "^4.0.2"
},
"packageManager": "pnpm@10.30.0",
"packageManager": "pnpm@10.30.1",
"workspaces": [
"wxmsg"
]