<?php
// index.php
declare(strict_types=1);

require_once __DIR__ . '/includes/auth.php';

if (!current_user()) {
  header('Location: login.php');
  exit;
}

if (!scope()) {
  header('Location: select_scope.php');
  exit;
}

header('Location: dashboard.php');
exit;