Skip to content

Commit

Permalink
Merge pull request #46 from rogershi-dev/feature/registration-auth
Browse files Browse the repository at this point in the history
Fixed session store connection error
  • Loading branch information
rogershi-dev authored Jul 11, 2024
2 parents 9b98a1d + 024945a commit dfb05dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const port = process.env.PORT || 5000;

// MySQL session store configuration
const sessionStore = new MySQLStore({
host: process.env.DB_HOST,
host: '127.0.0.1',
port: 3306,
user: process.env.DB_USER,
password: process.env.DB_PASSWORD,
Expand Down
1 change: 1 addition & 0 deletions server/routes/auth.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const express = require('express');
const axios = require('axios');
const router = express.Router();
const querystring = require('querystring');
require('dotenv').config();
const pool = require('../db.js'); // Import the MySQL connection pool

Expand Down

0 comments on commit dfb05dd

Please sign in to comment.