Skip to content

Commit a64bafd

Browse files
committed
Fix validation of audience claim
1 parent f887366 commit a64bafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Token.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public function isExpired(DateTimeInterface $now = null)
308308
*/
309309
public function isPermittedFor($audience)
310310
{
311-
return $this->claims->get(RegisteredClaims::AUDIENCE) === $audience;
311+
return in_array($audience, $this->claims->get(RegisteredClaims::AUDIENCE, []), true);
312312
}
313313

314314
/**

0 commit comments

Comments
 (0)