Skip to content

Commit

Permalink
Merge pull request #21 from MatheusSanchez/SFD-54
Browse files Browse the repository at this point in the history
User authentication controller and JWT Token configuration
  • Loading branch information
MatheusSanchez authored Jan 27, 2024
2 parents 4ed1801 + 5c4dab9 commit f3ea436
Show file tree
Hide file tree
Showing 11 changed files with 223 additions and 48 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
NODE_ENV=dev
PORT=3333
DATABASE_URL="postgresql://docker:docker@localhost:8080/orange-db?schema=public"
JWT_SECRET=
1 change: 1 addition & 0 deletions .github/workflows/run-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ jobs:

env:
DATABASE_URL: "postgresql://docker:docker@localhost:8080/orange-db?schema=public"
JWT_SECRET: "oPedroEhFeraMsmCaraEhDiferenciado"

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"vitest": "^1.2.1"
},
"dependencies": {
"@fastify/cors": "^8.5.0",
"@fastify/cors": "^9.0.0",
"@fastify/jwt": "^8.0.0",
"@prisma/client": "5.8.1",
"@types/bcryptjs": "^2.4.6",
"@types/express": "^4.17.21",
Expand Down
Loading

0 comments on commit f3ea436

Please sign in to comment.