Skip to content

Commit 3723bd1

Browse files
authored
Catch resolving guards
1 parent af98b3a commit 3723bd1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/DataCollector/MultiAuthCollector.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ public function collect()
3434
$names = '';
3535

3636
foreach($this->guards as $guardName) {
37-
$user = $this->resolveUser($this->auth->guard($guardName));
37+
try {
38+
$user = $this->resolveUser($this->auth->guard($guardName));
39+
} catch (\Exception $e) {
40+
continue;
41+
}
3842

3943
$data['guards'][$guardName] = $this->getUserInformation($user);
4044

0 commit comments

Comments
 (0)