Skip to content

createAccountRequest should return more info than just a boolean #1565

Closed

Description

@Errechydy

Is your feature request related to a problem? Please describe.
When creating a new account request we should get more information about why the request failed other than just a boolean. For instance if the email is already used then the user should get an error that there is already an account with that email rather than just "Account couldn't be created", with that general error the user will never know that caused that error.

Describe the solution you'd like
createAccountRequest should return String? error, if there are an error then a String is returned if not then return null.

Describe alternatives you've considered
There are no alternatives at the moment

Activity

  1. added
    enhancement
    on Nov 15, 2023
  2. vlidholt commented on Nov 15, 2023

    @vlidholt
    Collaborator

    When moving to Serverpod 2.0, this would be nice to change and use serializable exceptions over error codes.

  3. added
    area: authentication
    and removed
    enhancement
    on Dec 18, 2024
  4. marcelomendoncasoares commented on Apr 3, 2026

    @marcelomendoncasoares
    Collaborator

    Closing as completed since we now use rich exceptions serialized from the server.

  5. moved this from Backlog 🗂️ to Done 🚀 in Serverpod Frameworkson Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: authentication

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions