[Enhancement]: invert Authentication.UserCreate RPC's UserCreateRequest.verify #1129
Open
2 tasks done
Labels
enhancement
New feature or request
Milestone
Checklist
Suggestion
The
Authentication.UserCreate
RPC accepts aUserCreateRequest
message type, which includes abool
field namedverify
.The current behavior of this field is highly misleading in regards to how user creation and verification are handled.
At a glance, the field's name clearly suggests that setting it to true would immediately verify the user.
However, in practice, setting verify to true does not result in verification, but instead implies that the user must be verified later.
In contrast, setting it to false doesn't merely not enforce initiating the verification process, but actually verifies the user on the spot:
This behavior is not intuitive and can easily lead to mistakes in user management logic.
To improve clarity and align the behavior with user expectations, I'd consider introducing the following breaking changes during the next major version bump:
isVerified
orverifyUser
(so as to prevent implicitly breaking existing consumers)grpc-sdk
The text was updated successfully, but these errors were encountered: