Skip to content

HttpCode for /auth/email/register #1346

Closed Answered by Shchepotin
LucaAndrei asked this question in Q&A
Discussion options

You must be logged in to vote

@LucaAndrei reason why we use HttpStatus.NO_CONTENT is we not returned payload for /auth/email/register. Why do we not return the payload: because we handle 2 scenarios:

  1. We disallow login users without email confirmation
  2. We allow login users without email confirmation

For the first scenario, we shouldn't return any payload about a user within the register flow.

If you have any thoughts about it, please share we consider it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Shchepotin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants