jinnatar / python-cozify

Unofficial Cozify Python bindings and helpers
MIT License
16 stars 4 forks source link

Auth doesn't check token validity #1

Closed jinnatar closed 7 years ago

jinnatar commented 7 years ago

Perhaps OPTIONS calls at strategic places could check if the tokens in ephemeral storage are actually valid.

jinnatar commented 7 years ago

OPTIONS is not as useful as I thought, it will only check path validity and not for example auth token.

jinnatar commented 7 years ago

Preliminary fix is in with bdf2b50c7c0d17252394bfc9e7e76e262ee50674 but it could be better by finding cheaper API calls to test with.

jinnatar commented 7 years ago

As of 74b9c3635320635fcc6ac048e969d2e6b817f01a this is pretty much fixed, found a cheaper call. (Query hub timezone :D)