mtthidoteu / credit-monzo

13 stars 3 forks source link

Input AMEX authentication code not converted to string #6

Open harryd337 opened 2 weeks ago

harryd337 commented 2 weeks ago

When following the setup instructions I ran into a problem when copying and pasting the AMEX authentication code into the command prompt. The script kept saying the code wasn't working with the response "There must be a problem with the auth code!" I've figured out this is because the raw user input is passed straight from this line:

code = input("Please enter the code: ")

to this:

Data.create(key="truelayer_auth_code", value=code)

so it is not necessarily a string.

harryd337 commented 2 weeks ago

I've proposed a fix in #8 .