Skip to content

Commit

Permalink
Merge pull request #80 from WildCodeSchool-2023-09/Token_&KeepConnect
Browse files Browse the repository at this point in the history
Token &keep connect
  • Loading branch information
TristanZvunka authored Jan 23, 2024
2 parents d34facb + 3d5d08a commit 0f6c117
Show file tree
Hide file tree
Showing 12 changed files with 413 additions and 47 deletions.
263 changes: 263 additions & 0 deletions backend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@
},
"dependencies": {
"argon2": "^0.31.2",
"cookie-parser": "^1.4.6",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"jsonwebtoken": "^9.0.2",
"multer": "^1.4.5-lts.1",
"mysql2": "^3.5.2"
},
Expand Down
5 changes: 3 additions & 2 deletions backend/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ app.use(express.raw());

// Then, require the module and use it as middleware in your Express application:

// const cookieParser = require("cookie-parser");
// app.use(cookieParser());
const cookieParser = require("cookie-parser");

app.use(cookieParser());

// Once `cookie-parser` is set up, you can read and set cookies in your routes.
// For example, to set a cookie named "username" with the value "john":
Expand Down
Loading

0 comments on commit 0f6c117

Please sign in to comment.