<?php
define("JWT_SECRET_KEY", "8uP$#pQWz3@xGfH9*vC!Tm2^B&kYRdN"); // ✅ Add this if missing


define("DB_HOST", "localhost");
define("DB_NAME", "authenticator_app");
define("DB_USER", "root");
define("DB_PASS", "");

/*
define("DB_HOST", "localhost");
define("DB_NAME", "smashlux_authenticator_app");
define("DB_USER", "smashlux");
define("DB_PASS", "ai2yp3ncAkeh");
*/
// ✅ Use PDO for database connection
try {
    $pdo = new PDO("mysql:host=" . DB_HOST . ";dbname=" . DB_NAME, DB_USER, DB_PASS);
    $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
} catch (PDOException $e) {
    die("Database connection failed: " . $e->getMessage());
}
?>
