Skip to content

sign-up / register endpoint: create a new Drive and a new Agent in one request #489

Open
@joepio

Description

@joepio

Creating a new user / Agent is currently always done using Invites. That flow doesn't make a lot of sense for most usecases: users will probably want their own workspace / Drive, and not join some existing one.

So how should that work?

  • I think we need a /signUp endpoint that takes a public key + username and creates a drive + agent.
  • A custom view is warranted, since the client still needs to generate the key (and that should happen at the touch of some button)
  • We should check for name collissions. Every username must be unique, as we'll use that for the URL.

Front end:

  • Use /register and /confirm-email endpoints
  • User can Register using one button
  • Create new drives the new way
  • Remove / change old invite system. Maybe it still should work, but it needs a refactor at least. We at least want users to create a Drive from an agent without an e-mail address.

PR Checklist:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions