Skip to content

Commit cddfe1e

Browse files
committed
fix: response
1 parent 8e655bc commit cddfe1e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

server/handlers/authorize.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,11 @@ func AuthorizeHandler() gin.HandlerFunc {
180180
// }
181181

182182
handleResponse(gc, responseMode, loginURL, redirectURI, map[string]interface{}{
183-
"code": code,
184-
"state": state,
183+
"type": "authorization_response",
184+
"response": map[string]string{
185+
"code": code,
186+
"state": state,
187+
},
185188
}, http.StatusOK)
186189

187190
return

0 commit comments

Comments
 (0)