fastlane/ci

Endpoint to create an Account given an API Token

nakhbari opened this issue · 3 comments

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 Do you have cycles to work on this?

Yes, I can take that on today 👍

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:

  1. Create the user
  2. Login