public function getDecodedToken($jwt) { try { $decodedToken = JWT::decode($jwt); $tenant = $this->findTenant($decodedToken->iss); JWT::decode($jwt, $tenant->getSharedSecret(), ['HS256'], 600); return $decodedToken; } catch (\Exception $e) { throw new AuthenticationException($e->getMessage()); } }