Nest访问令牌过期后会发生什么? [英] What happens after the Nest access token expires?

查看:101
本文介绍了Nest访问令牌过期后会发生什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题说明了一切.我在API的任何地方都找不到说明它过期时会发生什么的信息.您是否需要再次打开与Nest合作"网页并获得新的授权码?或者,使用相同的授权码,只是获得一个新令牌? Nest会如何指示令牌已过期?

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?

推荐答案

OAuth响应中会返回到期日期,并将其设置为将来的10年,这实际上是永远的.这样一来,Nest就有了很多年的时间来提出更新或到期的故事.

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.

这篇关于Nest访问令牌过期后会发生什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆