fix: refresh token param in string

This commit is contained in:
Lakhan Samani
2022-03-08 19:31:19 +05:30
parent 7136ee924d
commit 9eca697a91
2 changed files with 2 additions and 5 deletions

View File

@@ -158,7 +158,7 @@ func OAuthCallbackHandler() gin.HandlerFunc {
sessionstore.SetState(authToken.AccessToken.Token, authToken.FingerPrint+"@"+user.ID)
if authToken.RefreshToken != nil {
params = params + `&refresh_token=${refresh_token}`
params = params + `&refresh_token=` + authToken.RefreshToken.Token
sessionstore.SetState(authToken.AccessToken.Token, authToken.FingerPrint+"@"+user.ID)
}