推特访问令牌会过期吗? [英] Do twitter access token expire?

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

问题描述

我正在构建一个网络应用程序,用户可以在其中管理他的 Twitter 帐户.我已经创建了 twitter 应用程序,一旦用户对自己进行身份验证,应用程序就会从 twitter 获取访问令牌.此访问令牌是否过期,或者我可以存储它并代表用户提出请求,而无需要求他再次登录?

I am building a web app from where the user can manage his twitter account. I've created the twitter app and once the user authenticates himself the application gets the access token from twitter. Does this access token expire or I can store it and make request, on user's behalf, without asking from him to log in again ?

推荐答案

这是他们在开发页面上所说的

Here is what they saying in there development page

问题:访问令牌的有效期是多久?

访问令牌未明确过期.访问令牌将是如果用户明确撤销其应用程序中的应用程序,则无效Twitter 帐户设置,或者 Twitter 是否暂停了应用程序.如果应用被暂停,推特应用会有提示仪表板表明它已被暂停.

Access tokens are not explicitly expired. An access token will be invalidated if a user explicitly revokes an application in the their Twitter account settings, or if Twitter suspends an application. If an application is suspended, there will be a note in the Twitter app dashboard stating that it has been suspended.

可以在此处找到更多详细信息

More details can be found here

常见问题推特

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

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