diff --git a/src/Support/JwtParser.php b/src/Support/JwtParser.php index 703877e..b937054 100644 --- a/src/Support/JwtParser.php +++ b/src/Support/JwtParser.php @@ -145,7 +145,7 @@ public function getId() public function getRoles() { - return $this->claims[$this->rolesClaim] ?? null; + return $this->getClaim($this->rolesClaim); } /** @@ -160,4 +160,4 @@ public function getIsJwtValid(): bool { return $this->isJwtValid; } -} \ No newline at end of file +}