aboutsummaryrefslogtreecommitdiffstats
path: root/backend/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'backend/index.js')
-rw-r--r--backend/index.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/index.js b/backend/index.js
index c7ac324..7b548ad 100644
--- a/backend/index.js
+++ b/backend/index.js
@@ -1,4 +1,5 @@
const express = require('express');
+const rateLimit = require('express-rate-limit');
const bodyParser = require('body-parser');
const bcrypt = require('bcryptjs');
const jwt = require('jsonwebtoken');
@@ -33,7 +34,7 @@ admin.initializeApp({
const db = admin.firestore();
// Secret key for JWT
-const JWT_SECRET = 'your_jwt_secret_key'; // Replace with your actual JWT secret key
+const JWT_SECRET = process.env.JWT_SECRET_KEY;
// Register route
app.post('/register', async (req, res) => {