刷新访问令牌会为您提供另一个刷新令牌 [英] Refreshing the access token gives you another refresh token

查看:133
本文介绍了刷新访问令牌会为您提供另一个刷新令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我发送刷新令牌以刷新访问令牌时,我获得了一个新的访问令牌,但我也获得了一个新的刷新令牌。  我应该保留原始刷新令牌以便再次使用,或者我应该用我收到的新刷新令牌替换它。
 我已经过测试,原始刷新令牌再次有效。

When I send a refresh token to refresh an access token I get a new access token but I also get a new refresh token.  I am supposed to keep the original refresh token for use again or am I supposed to replace it with the new refresh token I have received.  I have tested and the original refresh token works again.

谢谢

推荐答案

根据此论坛帖子:

As per this forum post:

http://social.msdn.microsoft.com/Forums/en-US/messengerconnect/thread/44878b44-3b36-46b0-8051-fd8fe94ae6b0

刷新令牌从被授予的那一刻开始有效期为1年,无论如何。 所以你的原始刷新令牌会在它到期之前继续保持良好状态,但是你应该转移到新的令牌,因为它可以在更长的时间内使用。

refresh tokens are good for 1 year from the moment they were granted, regardless.  So your original refresh token will continue to be good until it's year expires, but you should move to the new one since it's good for a longer period of time.


这篇关于刷新访问令牌会为您提供另一个刷新令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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