Skip to content

Commit 905795d

Browse files
authored
Merge pull request #78 from vbetsch/develop
Sprint 4 - Authentication
2 parents f9a665b + 7ac60c9 commit 905795d

File tree

72 files changed

+2018
-194
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2018
-194
lines changed

.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,10 @@ DATABASE_PASSWORD=your_database_user_password
66
DATABASE_HOST=your_database_host
77
DATABASE_PORT=your_database_port
88
DATABASE_URL=your_database_url
9+
10+
# Next Auth
11+
NEXTAUTH_SECRET=your_nextauth_secret
12+
NEXTAUTH_URL=your_nextauth_url
13+
14+
# Security
15+
BCRYPT_SALT_ROUNDS=your_bcrypt_salt_rounds

.idea/locklite.iml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,5 @@ clean:
6565
# Aliases
6666
run: up dev
6767
checks: lint tests
68-
ci: checks build
68+
ci: lint coverage build
6969
.PHONY: run checks ci

jest.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ const config: Config = {
1616
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
1717
moduleNameMapper: {
1818
'^@/(.*)$': '<rootDir>/$1',
19+
'^@prisma/(.*)$': '<rootDir>/prisma/$1',
1920
'^@api/(.*)$': '<rootDir>/src/modules/api/$1',
2021
'^@ui/(.*)$': '<rootDir>/src/modules/ui/$1',
2122
'^@shared/(.*)$': '<rootDir>/src/modules/shared/$1',
22-
'^@prisma/(.*)$': '<rootDir>/prisma/$1',
23-
'^@lib/(.*)$': '<rootDir>/lib/$1',
23+
'^@lib/(.*)$': '<rootDir>/src/lib/$1',
2424
},
2525
testMatch: ['**/?(*.)+(spec|test).[tj]s?(x)'],
2626
coverageThreshold: {
@@ -31,7 +31,7 @@ const config: Config = {
3131
statements: 80,
3232
},
3333
},
34-
coveragePathIgnorePatterns: ['<rootDir>/lib/', '<rootDir>/prisma/'],
34+
coveragePathIgnorePatterns: ['<rootDir>/src/lib/', '<rootDir>/prisma/'],
3535
};
3636

3737
export default config;

package-lock.json

Lines changed: 211 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@
2323
"@emotion/styled": "^11.14.1",
2424
"@mui/icons-material": "^7.2.0",
2525
"@mui/material": "^7.2.0",
26+
"@next-auth/prisma-adapter": "^1.0.7",
2627
"@prisma/client": "^6.12.0",
28+
"bcrypt": "^6.0.0",
2729
"eslint-plugin-prettier": "^5.5.3",
2830
"eslint-plugin-react": "^7.37.5",
2931
"http-status-codes": "^2.3.0",
3032
"next": "15.3.5",
33+
"next-auth": "^4.24.11",
3134
"next-swagger-doc": "^0.4.1",
3235
"react": "^19.0.0",
3336
"react-dom": "^19.0.0",
@@ -40,6 +43,7 @@
4043
"@eslint/js": "^9.31.0",
4144
"@testing-library/jest-dom": "^6.6.3",
4245
"@testing-library/react": "^16.3.0",
46+
"@types/bcrypt": "^6.0.0",
4347
"@types/jest": "^30.0.0",
4448
"@types/node": "^20",
4549
"@types/react": "^19",

0 commit comments

Comments
 (0)