添加google第三方登录,修改中继请求post模式选择
This commit is contained in:
parent
d6a1517689
commit
4309a5faea
|
|
@ -492,7 +492,7 @@ func DoThirdPartyCallBack(state *proto.ThirdPartyLoginState, code string) {
|
|||
|
||||
func DoGoogleCallBack(state *proto.ThirdPartyLoginState, code string) {
|
||||
//根据code获取Access Token
|
||||
tokenResp, err := worker.GetGoogleAccessTokenByCode(code, "https://pm.ljsea.top/tool/google_callback", worker.GoogleClientID, worker.GoogleClientSecret)
|
||||
tokenResp, err := worker.GetGoogleAccessTokenByCode(code, "https://pm.ljsea.top/tool/third_party_callback", worker.GoogleClientID, worker.GoogleClientSecret)
|
||||
|
||||
if tokenResp.AccessToken == "" {
|
||||
log.Println("get google access token is empty")
|
||||
|
|
|
|||
Loading…
Reference in New Issue