diff --git a/package.json b/package.json index 994e123..6e9b104 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lemmy-js-client", - "version": "0.19.0-rc.7", + "version": "0.19.0-rc.9", "description": "A javascript / typescript client for Lemmy", "repository": "https://github.com/LemmyNet/lemmy-js-client", "license": "AGPL-3.0", diff --git a/src/http.ts b/src/http.ts index dd21d4a..16086f7 100644 --- a/src/http.ts +++ b/src/http.ts @@ -1359,6 +1359,13 @@ export class LemmyHttp { return json; } } + + /** + * Set the headers (can be used to set the auth header) + */ + setHeaders(headers: { [key: string]: string }) { + this.#headers = headers; + } } function encodeGetParams(p: BodyType): string {