diff --git a/app/Services/AuthService.php b/app/Services/AuthService.php index 8245804..f131ce4 100644 --- a/app/Services/AuthService.php +++ b/app/Services/AuthService.php @@ -15,8 +15,9 @@ class AuthService */ public static function issueTokens(User $user): array { - // 기존 리프레시 토큰 삭제 (한 사용자당 하나의 리프레시 토큰만 유지) - $user->tokens()->where('name', 'refresh-token')->delete(); + // 다중 기기 로그인 지원: 기존 리프레시 토큰을 삭제하지 않음 + // 각 기기에서 독립적으로 토큰 유지 가능 + // (기존 단일 기기 정책 제거 - 2026-01-15) // 액세스 토큰 만료 시간 (분 단위, null이면 무제한) $accessExpiration = Config::get('sanctum.access_token_expiration');