Skip to content

Commit

Permalink
removing lodash
Browse files Browse the repository at this point in the history
  • Loading branch information
bloombar committed Nov 8, 2023
1 parent 007c08a commit 93ebff2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Copy the file named `.env.example` into a new file named simply, `.env`.

Make sure the `REACT_APP_BACKEND` setting in this file specifies the correct domain and port where the Express back-end app is running.

```javascript
```js
REACT_APP_BACKEND=http://localhost:3000
```

Expand Down Expand Up @@ -80,7 +80,7 @@ Copy the file named `.env.example` into a new file named simply, `.env`.

Make sure the `FRONT_END_DOMAIN` setting in this file specifies the correct domain and port where the React front-end app is running.

```javascript
```js
FRONT_END_DOMAIN=http://localhost:3001
```

Expand Down
1 change: 0 additions & 1 deletion back-end/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ const cookieParser = require("cookie-parser") // middleware useful for parsing c
require("dotenv").config({ silent: true }) // load environmental variables from a hidden file named .env

// the following are used for authentication with JSON Web Tokens
const _ = require("lodash") // the lodash module has some convenience functions for arrays that we use to sift through our mock user data... you don't need this if using a real database with user info
const jwt = require("jsonwebtoken")
const passport = require("passport")

Expand Down
2 changes: 1 addition & 1 deletion back-end/config/jwt-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ let jwtOptions = {

// define the method that is used by passport to verify the contents (i.e. the payload) of the JWT token
const jwtVerifyToken = async function (jwt_payload, next) {
// console.log("JWT payload received", jwt_payload) // debugging
console.log("JWT payload received", jwt_payload) // debugging

// check if the token has expired
const expirationDate = new Date(jwt_payload.exp * 1000) // convert from seconds to milliseconds
Expand Down

0 comments on commit 93ebff2

Please sign in to comment.