Skip to content
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

Add jwt token support #33

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

niekschoemaker
Copy link

This should increase the reliability in case haier ever decides to change the expiration time.

I also added a check for the token expires soon in the refresh_token call, this should avoid unecessary login calls (before this patch there were around 40 login calls while using the example code from the readme, so simply requesting the info)

And furthermore increased the clarity for the logging of enum errors.

This makes the exception a bit clearer on which property exactly has the incorrect value
This should increase the realiability of re-using tokens in case the expiration date changes on Haier's side
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant