Skip to content

Commit

Permalink
Update for interface change in Firebase/JWT
Browse files Browse the repository at this point in the history
  • Loading branch information
iampersistent authored May 2, 2023
1 parent cb29f38 commit b501e8f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/GraphQLMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ private function decodeToken(string $token): array
try {
$decoded = JWT::decode(
$token,
$this->options["secret"],
(array) $this->options["algorithm"]
new Key($this->options["secret"], $this->options["algorithm"])
);
return (array) $decoded;
} catch (Exception $exception) {
Expand Down

0 comments on commit b501e8f

Please sign in to comment.