You are only browsing one thread in the discussion! All comments are available on the post page.

Return

dessalines ,

It’s here, and it links to the objects used by the lemmy-js-client, so we don’t have to maintain 3 copies of the API, but only 2.

It’s also more descriptive as it has all the objects, not just the API calls.

CadeyARatio OP ,
@CadeyARatio@lemmy.ml avatar

How do you authenticate though?

dessalines ,

It’s in the forms section for data types : github.com/LemmyNet/lemmy-js-client/…/user.ts#L61

CadeyARatio OP ,
@CadeyARatio@lemmy.ml avatar

Is there an old copy of the API docs around? The ones that explained how you authenticate over HTTP and websockets?

dessalines ,

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 every auth field. It says that on the line I linked you.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • wartaberita
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • [email protected]
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • TheResearchGuardian
  • Ask_kbincafe
  • KbinCafe
  • Testmaggi
  • Socialism
  • feritale
  • oklahoma
  • SuperSentai
  • KamenRider
  • All magazines