You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
According to the developer guide, there are two types of errors:
1-Unexpected errors
2-Expected errors
When a user registers using the registerCustomerAccount mutation and immediately tries to login prior to verifying his account, the login mutation returns an unexpected error. As this is a common error, I believe it should be treated as an expected error.
To Reproduce
Steps to reproduce the behavior:
Register a new account
mutation Register($input: RegisterCustomerInput!) {
registerCustomerAccount(input: $input) {
... on Success {
success
}
...ErrorResult
}
}
fragment ErrorResult on ErrorResult {
errorCode
message
}
Login with the newly registered account
mutation SignIn(
$emailAddress: String!
$password: String!
$rememberMe: Boolean!
) {
login(username: $emailAddress, password: $password, rememberMe: $rememberMe) {
... on CurrentUser {
id
}
...ErrorResult
}
}
fragment ErrorResult on ErrorResult {
errorCode
message
}
Describe the bug
According to the developer guide, there are two types of errors:
1-Unexpected errors
2-Expected errors
When a user registers using the registerCustomerAccount mutation and immediately tries to login prior to verifying his account, the login mutation returns an unexpected error. As this is a common error, I believe it should be treated as an expected error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Something on the order of:
Environment:
The text was updated successfully, but these errors were encountered: