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

微信开放平台增加refreshtoken缓存 #822

Merged
merged 3 commits into from
Mar 28, 2025
Merged

Conversation

larryclean
Copy link
Contributor

微信开放平台增加refreshtoken缓存

add openplatform refresh_token
openplatform add refresh_token expire set 10 year
@houseme houseme requested a review from Copilot March 27, 2025 14:16
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a refresh token caching mechanism to the WeChat open platform integration.

  • Adds caching for the refresh token in RefreshAuthrTokenContext.
  • Modifies GetAuthrAccessTokenContext to check for a refresh token and refresh the access token if necessary.

@houseme houseme requested a review from silenceper March 27, 2025 14:23
@silenceper silenceper merged commit 44150c5 into silenceper:v2 Mar 28, 2025
13 checks passed
@larryclean
Copy link
Contributor Author

@silenceper 可否发一个新版本,我这边等着用谢谢

@houseme
Copy link
Collaborator

houseme commented Mar 28, 2025

@silenceper 可否发一个新版本,我这边等着用谢谢

根据commit 标识获取就可以,尝试一下,go get github.com/silenceper/wechat/v2@44150c5

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

Successfully merging this pull request may close these issues.

3 participants