@polymarket/relayer-client 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/auth/handler.js
CHANGED
|
@@ -23,6 +23,8 @@ class AuthHandler {
|
|
|
23
23
|
// Logging in will set the session cookies on the httpClient
|
|
24
24
|
const resp = yield this.httpClient.send(`${this.url}/login`, http_helpers_1.GET, { Authorization: `Bearer ${this.token}` });
|
|
25
25
|
const cookies = resp.headers['set-cookie'];
|
|
26
|
+
console.log(`RelayClient Coookies:`);
|
|
27
|
+
console.log(cookies);
|
|
26
28
|
let aggregatedCookie = "";
|
|
27
29
|
for (const cookie of cookies) {
|
|
28
30
|
if (cookie.includes(POLYMARKET_COOKIE_NAME)) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosInstance, Method } from "axios";
|
|
1
|
+
import { AxiosInstance, AxiosResponse, Method } from "axios";
|
|
2
2
|
export declare const GET = "GET";
|
|
3
3
|
export declare const POST = "POST";
|
|
4
4
|
export declare const DELETE = "DELETE";
|
|
@@ -6,5 +6,5 @@ export declare const PUT = "PUT";
|
|
|
6
6
|
export declare class HttpClient {
|
|
7
7
|
readonly instance: AxiosInstance;
|
|
8
8
|
constructor();
|
|
9
|
-
send(endpoint: string, method: Method, headers?: any, data?: any, params?: any): Promise<
|
|
9
|
+
send(endpoint: string, method: Method, headers?: any, data?: any, params?: any): Promise<AxiosResponse>;
|
|
10
10
|
}
|