this post was submitted on 11 Jan 2025
5 points (85.7% liked)

JavaScript

1700 readers
1 users here now

founded 2 years ago
MODERATORS
 

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() )

you are viewing a single comment's thread
view the rest of the comments
[โ€“] okelote360 0 points 2 weeks ago (1 children)

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

[โ€“] [email protected] 1 points 2 weeks ago* (last edited 2 weeks ago)

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