feat:자동 재인증 미들웨어 추가

- AutoLoginViaRemember: 세션 만료 시 remember_token으로 자동 로그인
- HQ 소속/활성 상태 검증
- API 토큰 자동 재발급
- web 미들웨어 그룹에 등록

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-28 16:33:10 +09:00
parent e511af62d8
commit 407c98a391
2 changed files with 84 additions and 2 deletions

View File

@@ -26,9 +26,9 @@
'menu-sync/*',
]);
// auth 미들웨어 그룹에 HQ 검증 추가
// web 미들웨어 그룹에 자동 재인증 추가
$middleware->appendToGroup('web', [
// 기본 web 미들웨어에는 추가하지 않음 (auth에서만 적용)
\App\Http\Middleware\AutoLoginViaRemember::class,
]);
})
->withExceptions(function (Exceptions $exceptions): void {