Question says it all. I couldn't find anywhere in the API that states what happens when it expires. Do you have to open that "Works with Nest" webpage again and get a new authorization code? Or, using the same authorization code, just get a new token? And how will Nest indicate the token has expired?
Asked
Active
Viewed 952 times
1 Answers
5
Expiration date comes back in the OAuth response and is set to 10 years in the future, which is practically forever. That gives Nest quite a few years to come up with a refresh or expiration story.

David W. Keith
- 2,246
- 17
- 20
-
1Right, thought that the number they return was milliseconds. – user1686841 Jul 11 '14 at 19:19
-
Yeah, that is why I don't like Unix time, too ambiguous. The OAuth spec is clear on which version though: http://tools.ietf.org/html/rfc6749#section-4.2.2 – David W. Keith Jul 14 '14 at 14:24