Open courajs opened 8 years ago
Great catch! That would make a great starter issue for https://github.com/hoodiehq/camp/issues :) Anyone feel free to go ahead and create one, otherwise I’ll get back to it as soon as I can
I'd enjoy creating my first starter issue 😀
How do we find a user by username? I couldn't figure it out from an (admittedly quick) look at hoodie-account-server
.
Same for token. What are the tokens, and where do they come from?
We could also keep it super short and only add the .id
option in the starter issue. Or do just id and username if the token is more complicated or not supported yet
Tokens are currently out of scope. They can later be used for one-time logins, e.g. for password resets.
This one is actually tricky, I get back to it as soon as I can :) If you like we can also work on it together
We could in the meantime add {id: ...}
support, and throw NotImplementedError
or similar for username/token. Do you think that kind of thing is worth it in general? To match documentation?
yeah, we did that in the past. NotImplementedError
is great, and then ideally add URL to an open issue to fix it :)
Find
,update
, andremove
are documented as accepting an object with anid
,username
, ortoken
property, but currently only work when passed a string id. When passed an object they mistakenly try toGET
http://localhost:4200/hoodie/account/api/accounts/[object%20Object]