I have an error with regenerating the token after it expires, if you use an app with the secret.
I pass both the username and secret parameters, but it says that
"""
u = Cognito(COGNITO_POOL_ID, APP_CLIENT_ID, client_secret=APP_SECRET_KEY, username=email1, id_token=id_token, refresh_token=refresh_token, access_token=access_token)
u.check_token()
An error occurred (NotAuthorizedException) when calling the InitiateAuth operation: SecretHash does not match for the client: XXXXXXXXXX
"""
the secret is correct because other functions such as registration or profile update work
I have an error with regenerating the token after it expires, if you use an app with the secret. I pass both the username and secret parameters, but it says that
"""
An error occurred (NotAuthorizedException) when calling the InitiateAuth operation: SecretHash does not match for the client: XXXXXXXXXX """ the secret is correct because other functions such as registration or profile update work
without the secret instead it works correctly