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 {