From 1e6ddc35879026063943108e21d75381ee7bfa21 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Fri, 17 Mar 2023 11:33:57 -0400 Subject: [PATCH] docs: Fix incorrect code sample in README (#109) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c53ce12..942aebc 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ import { LemmyHttp } from 'lemmy-js-client'; let baseUrl = 'https://lemmy.ml'; let client: LemmyHttp = new LemmyHttp(baseUrl, headers?); -let jwt = await client.httpLogin(loginForm).jwt; +let jwt = await client.login(loginForm).jwt; ``` ## Development