XeroAPI / xero-python-oauth2-app

python app for demonstrating the xero-python SDK
MIT License
20 stars 32 forks source link

KeyError: 'STATE' issue – add STATE variable to config.py #31

Closed abitamaspp closed 3 years ago

abitamaspp commented 3 years ago

I'm getting this error message every time I start the application

image

I have created config.py and also write my CLIENT_ID and CLIENT_SECRET in it, yet I can't find anything mentioning STATE variable for config file in the readme. Is there anything I missed?

Thanks in advance!

abitamaspp commented 3 years ago

Okay I got this. Turns out I just have to add STATE variable in config.py file. That file then will looked like this:

image

For its value, just write a random string

Hope this will help others newbie like me