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:
parent
5981ed941e
commit
776cf3eeeb
@ -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"]
|
||||
|
||||
@ -1,8 +1,6 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"module": "NodeNext",
|
||||
"moduleResolution": "NodeNext",
|
||||
"verbatimModuleSyntax": true,
|
||||
"emitDecoratorMetadata": true,
|
||||
"experimentalDecorators": true,
|
||||
|
||||
@ -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"]
|
||||
}
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -15,6 +15,10 @@ export default [
|
||||
"**/node_modules/**",
|
||||
"**/dist/**",
|
||||
"**/.next/**",
|
||||
"**/.turbo/**",
|
||||
"**/.cache/**",
|
||||
"**/.pnpm-store/**",
|
||||
"**/.typecheck/**",
|
||||
"**/build/**",
|
||||
"**/coverage/**",
|
||||
"**/next-env.d.ts",
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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/**/*",
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user