mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-13 00:24:31 +08:00
oauth debug log
This commit is contained in:
parent
0ed44422b3
commit
50c7de1608
1 changed files with 1 additions and 0 deletions
|
@ -151,6 +151,7 @@ func getGoogleUserInfo(state string, code string) (*OAuthUser, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed reading response body: %s", err.Error())
|
return nil, fmt.Errorf("failed reading response body: %s", err.Error())
|
||||||
}
|
}
|
||||||
|
logger.Log(0, fmt.Sprintf("---------------> USERINFO: %v", string(contents)))
|
||||||
var userInfo = &OAuthUser{}
|
var userInfo = &OAuthUser{}
|
||||||
if err = json.Unmarshal(contents, userInfo); err != nil {
|
if err = json.Unmarshal(contents, userInfo); err != nil {
|
||||||
return nil, fmt.Errorf("failed parsing email from response data: %s", err.Error())
|
return nil, fmt.Errorf("failed parsing email from response data: %s", err.Error())
|
||||||
|
|
Loading…
Add table
Reference in a new issue