by IgorPartola · 12y ago · 0 comments
I created a /tokens endpoint, where I POST the auth credentials and in return I get back a newly generated auth token. In my opinion this is a nice RESTFul solution.
You are creating a session. That's why login could be a POST to /users/sesssions