add SessionTimeout logic

This commit is contained in:
root
2026-03-10 16:45:08 -04:00
parent 2e9a391280
commit 311bb93977
15 changed files with 534 additions and 292 deletions
@@ -0,0 +1,20 @@
<?php
namespace App\Http\Resources\Auth;
use Illuminate\Http\Resources\Json\JsonResource;
class SessionTimeoutConfigResource extends JsonResource
{
public function toArray($request): array
{
return [
'timeout' => (int) ($this['timeout'] ?? 0),
'warning_time' => (int) ($this['warning_time'] ?? 0),
'check_interval' => (int) ($this['check_interval'] ?? 0),
'logout_url' => (string) ($this['logout_url'] ?? ''),
'keep_alive_url' => (string) ($this['keep_alive_url'] ?? ''),
'check_url' => (string) ($this['check_url'] ?? ''),
];
}
}