Refactor authentication module and update package dependencies

- Removed Passport.js integration from the authentication module, replacing it with a custom implementation for local and JWT authentication.
- Introduced a new `JoseJwtService` for handling JWT operations, enhancing security and flexibility.
- Updated the Dockerfile and entrypoint scripts to streamline Prisma client generation and migration commands.
- Cleaned up package.json files by removing unused dependencies and ensuring consistency across applications.
- Enhanced SFTP configuration with optional host key fingerprint for improved security.
- Updated test files to reflect changes in the authentication logic and added necessary imports for Jest.
This commit is contained in:
barsa 2025-12-12 13:10:29 +09:00
parent 5981ed941e
commit 776cf3eeeb
8 changed files with 17 additions and 29 deletions

View File

@ -3,7 +3,8 @@
"compilerOptions": {
"noEmit": false,
"outDir": "./dist",
"rootDir": "./src"
"rootDir": "./src",
"sourceMap": true
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist", "test", "**/*.spec.ts", "**/*.test.ts"]

View File

@ -1,8 +1,6 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"module": "NodeNext",
"moduleResolution": "NodeNext",
"verbatimModuleSyntax": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,

View File

@ -1,16 +0,0 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"noEmit": true,
"composite": false,
"declaration": false,
"emitDeclarationOnly": false,
"declarationMap": false,
"incremental": true,
"tsBuildInfoFile": ".typecheck/core-utils.tsbuildinfo",
"outDir": ".typecheck/core-utils",
"rootDir": "src"
},
"include": ["src/core/utils/**/*.ts", "src/core/utils/**/*.tsx"],
"exclude": ["node_modules", "dist", "test", "**/*.{spec,test}.ts", "**/*.{spec,test}.tsx"]
}

View File

@ -5,7 +5,7 @@
import { useCallback, useMemo, useState } from "react";
import type { FormEvent } from "react";
import { ZodError, type ZodIssue, type ZodSchema } from "zod";
import { ZodError, type ZodIssue, type ZodType } from "zod";
export type FormErrors<_TValues extends Record<string, unknown>> = Record<
string,
@ -17,7 +17,7 @@ export type FormTouched<_TValues extends Record<string, unknown>> = Record<
>;
export interface ZodFormOptions<TValues extends Record<string, unknown>> {
schema: ZodSchema<TValues>;
schema: ZodType<TValues>;
initialValues: TValues;
onSubmit?: (data: TValues) => Promise<void> | void;
}

View File

@ -15,6 +15,10 @@ export default [
"**/node_modules/**",
"**/dist/**",
"**/.next/**",
"**/.turbo/**",
"**/.cache/**",
"**/.pnpm-store/**",
"**/.typecheck/**",
"**/build/**",
"**/coverage/**",
"**/next-env.d.ts",

View File

@ -132,10 +132,11 @@
"type-check": "NODE_OPTIONS=\"--max-old-space-size=2048 --max-semi-space-size=128\" tsc --project tsconfig.json --noEmit",
"typecheck": "pnpm run type-check"
},
"dependencies": {
"peerDependencies": {
"zod": "4.1.13"
},
"devDependencies": {
"typescript": "5.9.3"
"typescript": "5.9.3",
"zod": "4.1.13"
}
}

View File

@ -2,11 +2,12 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"composite": true,
"declaration": true,
"declarationMap": true,
"outDir": "./dist",
"rootDir": ".",
"tsBuildInfoFile": "./dist/.tsbuildinfo",
"module": "NodeNext",
"moduleResolution": "NodeNext"
"sourceMap": true,
"tsBuildInfoFile": "./dist/.tsbuildinfo"
},
"include": [
"auth/**/*",

View File

@ -3,6 +3,8 @@
"compilerOptions": {
"target": "ES2024",
"lib": ["ESNext"],
"module": "NodeNext",
"moduleResolution": "NodeNext",
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
@ -10,9 +12,6 @@
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"isolatedModules": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"skipLibCheck": true,
"incremental": true
}