Skip to content

Commit

Permalink
Fix roles claim not working, and remove the support of dot claim for …
Browse files Browse the repository at this point in the history
…roles claim
  • Loading branch information
abublihi authored Feb 13, 2024
1 parent 09278bd commit 24841a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Support/JwtParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function getId()

public function getRoles()
{
return $this->claims[$this->rolesClaim] ?? null;
return $this->getClaim($this->rolesClaim);
}

/**
Expand All @@ -160,4 +160,4 @@ public function getIsJwtValid(): bool
{
return $this->isJwtValid;
}
}
}

0 comments on commit 24841a1

Please sign in to comment.