diff --git a/handler/tool.go b/handler/tool.go index a4a4c59..8e5cb41 100644 --- a/handler/tool.go +++ b/handler/tool.go @@ -809,7 +809,7 @@ func GetThirdPartyAuthUrl(c *gin.Context) { case "google": params := url.Values{} params.Add("client_id", worker.GoogleClientID) - params.Add("response_type", "token") //直接返回token + params.Add("response_type", "code") //直接返回token params.Add("redirect_uri", "https://pm.ljsea.top/tool/third_party_callback") params.Add("scope", "https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile") params.Add("state", stateBase64Str)