Skip to content

Commit 7ff3b30

Browse files
committed
fix: add code to query params
1 parent 2b52932 commit 7ff3b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/handlers/authorize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ func AuthorizeHandler() gin.HandlerFunc {
241241
}
242242

243243
// used of query mode
244-
params := "access_token=" + authToken.AccessToken.Token + "&token_type=bearer&expires_in=" + strconv.FormatInt(expiresIn, 10) + "&state=" + state + "&id_token=" + authToken.IDToken.Token
244+
params := "access_token=" + authToken.AccessToken.Token + "&token_type=bearer&expires_in=" + strconv.FormatInt(expiresIn, 10) + "&state=" + state + "&id_token=" + authToken.IDToken.Token + "&code=" + code
245245

246246
res := map[string]interface{}{
247247
"access_token": authToken.AccessToken.Token,

0 commit comments

Comments
 (0)