ellaisys / aws-cognito

AWS Cognito package (with MFA Feature) using the AWS SDK for PHP/Laravel
https://ellaisys.github.io/aws-cognito/
MIT License
110 stars 43 forks source link

Login Error cognito.validation.auth.failed #66

Closed ashishimple closed 1 year ago

ashishimple commented 1 year ago

@amitdhongde

after execute login

if ($claim = $this->attemptLogin($collection1, 'api', 'email', 'password', true)) {
  if ($claim instanceof AwsCognitoClaim) {
      return $claim->getData();
  } else {
      return response()->json(['status' => 'error', 'message' => $claim], 400);
} //End if

i get this output

{
    "status": "error",
    "message": {
        "headers": {},
        "original": {
            "error": "cognito.validation.auth.failed",
            "message": "Required parameter $user follows optional parameter $challenge"
        },
        "exception": null
    }
}
amitdhongde commented 1 year ago

@ashishimple Thank you for highlighting this. We shall review this and have it fixed asap.

amitdhongde commented 1 year ago

@ashishimple Can you share the composer.lock? or update the library to latest version. We tried replicating the issue but everything worked well for us.

amitdhongde commented 1 year ago

This issue stands closed as,

  1. We are not able to reproduce the issue, and
  2. no response from the user.

Feel free to reopen or create a new issue in case of more details.