Endpoint to create an Account given an API Token
nakhbari opened this issue · 3 comments
nakhbari commented
Parent: #1011
POST endpoint to create a user. Input should be an API Token and password. The email should be pulled from the API token and be used as the user ID.
This endpoint should login the new user by returning a JWT token.
{
"api_token": "234",
"password": "456"
}
KrauseFx commented
Yes, I can take that on today 👍
KrauseFx commented
This endpoint should login the new user by returning a JWT token.
I don't think that's a good idea. We probably will have some kind of user management at some point, which ideally uses the same API endpoint I guess? I believe we should let the frontend do 2 requests:
- Create the user
- Login