Token expire issue #628
Unanswered
Sniperwolf881
asked this question in
Q&A
Replies: 1 comment 10 replies
-
I run a script that makes sure the 8 hours (yes 8 hours now) hasn't expired / due to expire and then use the refresh token to generate a renewed token (I also execute the same code in the event Tesla expires the token early - as it is known to do) |
Beta Was this translation helpful? Give feedback.
10 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I just recently started using this library with TeslaSwift, and have faced some issues with the token after logging in.
When I print the token after logging in, I get this:
I changed to
xxxxxxxx
so the code get's smaller. But, in theexpires_in
it says28800
. If that is in seconds, that is equals to 8 hours. In my app I get logged out a few times a day. May that be the reason? And what can I do to stay logged in?Beta Was this translation helpful? Give feedback.
All reactions