diff --git a/src/GraphQL/Client.php b/src/GraphQL/Client.php index 4f1df80..0d7ed6d 100644 --- a/src/GraphQL/Client.php +++ b/src/GraphQL/Client.php @@ -37,6 +37,12 @@ public function __construct(array $httpConfig = []) $this->request = new Request($httpConfig); } + public function setToken(string $token): self + { + $this->token = $token; + return $this; + } + public function login(string $email, string $password): self { $this->token = (new Account($this->request))->login($email, $password);