mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
Make cert work.
This commit is contained in:
@ -332,7 +332,9 @@ func RefreshToken(grantType string, refreshToken string, scope string, clientId
|
||||
Code: "",
|
||||
}
|
||||
}
|
||||
claims, err := ParseJwtToken(refreshToken)
|
||||
|
||||
cert := getCertByApplication(application)
|
||||
claims, err := ParseJwtToken(refreshToken, cert)
|
||||
if err != nil {
|
||||
return &Code{
|
||||
Message: "error: invalid refresh_token",
|
||||
|
Reference in New Issue
Block a user