this post was submitted on 27 Jan 2021
2 points (100.0% liked)
Lemmy
12576 readers
44 users here now
Everything about Lemmy; bugs, gripes, praises, and advocacy.
For discussion about the lemmy.ml instance, go to !meta@lemmy.ml.
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
How do you authenticate though?
It's in the forms section for data types : https://github.com/LemmyNet/lemmy-js-client/blob/main/src/interfaces/api/user.ts#L61
Is there an old copy of the API docs around? The ones that explained how you authenticate over HTTP and websockets?
Don't use those, they're out of date. You need to login, it returns a
jwt
string, and you store that and use it everyauth
field. It says that on the line I linked you.