<?php
declare(strict_types=1);
require_once __DIR__ . '/db.php';
$auth = cadastro_require_auth();
cadastro_out([
    'ok' => true,
    'user' => cadastro_user(),
    'user_id' => $auth['sub'] ?? null,
    'municipality_id' => cadastro_token_municipio_id($auth),
    'roles' => cadastro_user_roles($auth),
    'schema' => cadastro_schema(),
]);
