diff --git a/backend/apis/nodejs/src/models/person.js b/backend/apis/nodejs/src/models/person_model.js similarity index 100% rename from backend/apis/nodejs/src/models/person.js rename to backend/apis/nodejs/src/models/person_model.js diff --git a/backend/apis/nodejs/src/utils/jwt_utils.js b/backend/apis/nodejs/src/utils/jwt_utils.js index 9bce45a..73e48da 100644 --- a/backend/apis/nodejs/src/utils/jwt_utils.js +++ b/backend/apis/nodejs/src/utils/jwt_utils.js @@ -26,6 +26,7 @@ function generateToken(person_id) { } // If the token is valid, store the decoded data in the request object + // req.jwt will contain the payload created in generateToken req.jwt = decoded; next(); });