We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1aab72 commit 855f884Copy full SHA for 855f884
Atomx/AtomxClient.php
@@ -57,7 +57,7 @@ protected function getDefaultOptions()
57
$options = parent::getDefaultOptions();
58
59
if ($this->shouldSendToken)
60
- $options['cookies'] = ['auth_tkt' => $this->getToken()];
+ $options['headers'] = ['Authorization' => $this->getToken()];
61
62
return $options;
63
}
@@ -84,7 +84,8 @@ public function login()
84
if ($response['success'] !== true)
85
throw new ApiException('Unable to login to API!');
86
87
- $token = $response['auth_tkt'] . '!userid_type:int';
+
88
+ $token = 'Bearer ' . $response['auth_token'];
89
90
$this->accountStore->storeToken($token);
91
0 commit comments