hello! im developing lemmy client (on html5). i tried to do login function but… when i try to fetch /v3/user backend with auth-token it give me error:

{
  "error": "no_id_given"
}

but why? what im doing wrong? if you want here is my source file on github ( function: getLoggined() )

  • Igor360OP
    link
    018 days ago

    now it give me data of someone but not about loggined account…

    • @[email protected]
      link
      fedilink
      English
      1
      edit-2
      17 days ago

      You need to provide the user ID (or username) of the account you want to fetch in the query parameters.