mirror of
https://github.com/casdoor/casdoor.git
synced 2025-05-23 02:35:49 +08:00
fix: Correct expiresIn calculation for WeChat Mini Program token. (#2814)
This commit is contained in:
parent
d1c55d5aa7
commit
2c4b1093ed
@ -715,7 +715,7 @@ func GetWechatMiniProgramToken(application *Application, code string, host strin
|
||||
Code: session.SessionKey, // a trick, because miniprogram does not use the code, so use the code field to save the session_key
|
||||
AccessToken: accessToken,
|
||||
RefreshToken: refreshToken,
|
||||
ExpiresIn: application.ExpireInHours * 60,
|
||||
ExpiresIn: application.ExpireInHours * hourSeconds,
|
||||
Scope: "",
|
||||
TokenType: "Bearer",
|
||||
CodeIsUsed: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user