Closed cdo9 closed 4 months ago
After going through this problem, I found that this configuration addresses this issue:
It seems that first login will return false because the new user needs to change their password. Leaving this here to help others who may encounter the same issue in the future.
run into the same problem where first time login always resulted in the error created a small PR that is fixing the problem: https://github.com/ellaisys/aws-cognito/pull/92
@amarnik Thank you for the PR. I have merged that change.
Describe the bug I'am using this as API.
Like i said in the title, when i register a new user, the first login i made in my app to the attemptLogin function returns false instead of the array with tokens. Only the first try after new registration.
To fix the issue i've done this :
The false is returned by
Auth::guard($guard)->attempt($credentials, $rememberMe);
inEllaisys\Cognito\Auth\AutheticasUsers.php
Thanks you,
Christophe