-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refreshAuthentication.php example gives "Unable to verify secret hash for client" #42
Comments
Oh btw I obtained aws-cognito using Composer and it retrieved version 0.2.11 which seems to be the latest version |
Hi @BenKennish $username must be the value of Username returned by the getUser method, not an email. Ivy |
Thanks @ivy-liu09. Could this be considered a bug in aws-cognito? All the other example scripts accept the email 'username' and also the error message "Unable to verify secret hash for client" seems inappropriate. |
I am getting a fatal error when the password is wrong:
Shouldn't I get an object saying that was bad request instead of a fatal error? In that way it would be possible to return to the user such information. |
I can get all the other example scripts working as expected but
refreshAuthentication.php
doesn't seem to work for me....I then edit refreshAuthentication.php and put in the same value for
$username
as I used inlogin.php
and with$refreshToken
set to the RefreshToken I received above (starting eyJjd and ending 4aQ) and I get...This is the same exception message that
login.php
generates if the 'app_client_secret' inconfig.php
is incorrect but it IS currently correct aslogin.php
is working as expected.Anyone know what I'm doing wrong?
Cheers, Ben
The text was updated successfully, but these errors were encountered: