<?php
declare(strict_types=1);

require_once __DIR__ . '/bootstrap.php';
require_once __DIR__ . '/auth.php';
require_once __DIR__ . '/response.php';

$user = require_auth($pdo);

success('Current user', [
    'id'         => (int)$user['id'],
    'email'      => $user['email'],
    'role_key'   => $user['role_key'],
    'company_id' => (int)$user['company_id']
]);
