Skip to content

Commit a15f5ed

Browse files
committed
Response jwt
1 parent e85205b commit a15f5ed

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

api/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
const fs = require("fs");
22

33
module.exports.handler = async (event) => {
4-
const jwtSecret = process.env.jwtSecret;
5-
// DO NOT DO THIS
6-
console.log(jwtSecret);
74
try {
85
return {
96
statusCode: 200,

api/questions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ const docClient = new AWS.DynamoDB.DocumentClient();
33

44
module.exports.handler = async (event) => {
55
try {
6+
const jwtSecret = process.env.jwtSecret;
7+
68
const params = {
79
TableName: "questions",
810
};
@@ -16,6 +18,7 @@ module.exports.handler = async (event) => {
1618
},
1719
body: JSON.stringify({
1820
error: false,
21+
jwtSecret,
1922
questions,
2023
}),
2124
};

0 commit comments

Comments
 (0)