Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在 access_token 之前给Access token给系统和网络2秒时间 #2

Open
John0King opened this issue Sep 5, 2019 · 0 comments
Open

Comments

@John0King
Copy link

var newAccessToken = json.access_token;
_cache.Set(cacheKey, newAccessToken, TimeSpan.FromSeconds(json.expires_in));
return newAccessToken;

这里建议将 expire_in 减去2-5秒,给网络传出和系统处理留出足够的空余

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant