From c47102bfb13a0277b76a39b09aa8759ec6b22e71 Mon Sep 17 00:00:00 2001 From: Nutomic Date: Tue, 31 Oct 2023 13:44:04 +0100 Subject: [PATCH] Add logout endpoint (fixes #206) (#208) --- src/http.ts | 8 ++++++++ src/utils.ts | 0 2 files changed, 8 insertions(+) delete mode 100644 src/utils.ts diff --git a/src/http.ts b/src/http.ts index 6589ba4..66bc0b3 100644 --- a/src/http.ts +++ b/src/http.ts @@ -976,6 +976,14 @@ export class LemmyHttp { ); } + logout() { + return this.#wrapper( + HttpType.Post, + "/user/logout", + {}, + ); + } + /** * Get the details for a person. * diff --git a/src/utils.ts b/src/utils.ts deleted file mode 100644 index e69de29..0000000