We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 67d54ae + b4ade31 commit 57b251cCopy full SHA for 57b251c
1 file changed
src/GraphQL/Client.php
@@ -37,6 +37,12 @@ public function __construct(array $httpConfig = [])
37
$this->request = new Request($httpConfig);
38
}
39
40
+ public function setToken(string $token): self
41
+ {
42
+ $this->token = $token;
43
+ return $this;
44
+ }
45
+
46
public function login(string $email, string $password): self
47
{
48
$this->token = (new Account($this->request))->login($email, $password);
0 commit comments