From b501e8f526dc0b1d964537e13629720a15de4516 Mon Sep 17 00:00:00 2001 From: Rich Shank Date: Mon, 1 May 2023 22:17:08 -0500 Subject: [PATCH] Update for interface change in Firebase/JWT --- src/GraphQLMiddleware.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/GraphQLMiddleware.php b/src/GraphQLMiddleware.php index 8688049..2e2648e 100644 --- a/src/GraphQLMiddleware.php +++ b/src/GraphQLMiddleware.php @@ -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) {