<?php

namespace App\Services\Auth;

use App\Config\SessionTimeout;
use Illuminate\Support\Facades\URL;

class SessionTimeoutConfigService
{
    public function config(): array
    {
        return [
            'timeout' => SessionTimeout::TIMEOUT_DURATION,
            'warning_time' => SessionTimeout::WARNING_THRESHOLD,
            'check_interval' => SessionTimeout::CHECK_INTERVAL,
            'logout_url' => URL::to('/auth/logout'),
            'keep_alive_url' => route('session.timeout.ping'),
            'check_url' => route('session.timeout.check'),
        ];
    }
}
