fix: fix #693 token error (#695)

This commit is contained in:
akkuman 2022-04-23 01:12:06 +08:00 committed by GitHub
parent b0b3eb0805
commit 28b9154d7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -230,7 +230,7 @@ func (c *ApiController) RefreshToken() {
clientSecret = tokenRequest.ClientSecret clientSecret = tokenRequest.ClientSecret
grantType = tokenRequest.GrantType grantType = tokenRequest.GrantType
scope = tokenRequest.Scope scope = tokenRequest.Scope
refreshToken = tokenRequest.RefreshToken
} }
} }

View File

@ -25,4 +25,5 @@ type TokenRequest struct {
Password string `json:"password"` Password string `json:"password"`
Tag string `json:"tag"` Tag string `json:"tag"`
Avatar string `json:"avatar"` Avatar string `json:"avatar"`
RefreshToken string `json:"refresh_token"`
} }