本文介绍了检查Ouath令牌是否无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以使用令牌将请求发送到Facebook和Twitter,以查看请求是否已失效。我知道如果我在facebook上更改密码会使令牌无效,因此如果我的应用程序的用户这样做,我希望将其显示为非活动状态,并提示他们重新认证帐户以继续使用它。
Is there a way to send a request to Facebook and Twitter with a token to see if it has been invalidated. I know if I change my password on facebook I invalidate my tokens so if a user of my app does this I would like to display that as inactive and prompt them to re-auth their account to continue using it.
推荐答案
只需针对。如果它已过期,则会告诉您。
Just use the token against https://graph.facebook.com/me. If it has expired, it'll tell you.
这篇关于检查Ouath令牌是否无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!