<?php
declare(strict_types=1);

require_once __DIR__ . '/../app/auth.php';
start_session();

if (!empty($_SESSION['uid'])) {
  header('Location: /Comercio/public/dashboard.php');
} else {
  header('Location: /Comercio/public/login.php');
}
exit;
