Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions providers/kakao/kakao.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ func (p *Provider) FetchUser(session goth.Session) (goth.User, error) {
ThumbnailImage string `json:"thumbnail_image"`
ProfileImage string `json:"profile_image"`
} `json:"properties"`
KakaoAccount struct {
Email string `json:"email"`
} `json:"kakao_account"`
}{}

if err = json.NewDecoder(bytes.NewReader(bits)).Decode(&u); err != nil {
Expand All @@ -129,6 +132,7 @@ func (p *Provider) FetchUser(session goth.Session) (goth.User, error) {
user.NickName = u.Properties.Nickname
user.AvatarURL = u.Properties.ProfileImage
user.UserID = id
user.Email = u.KakaoAccount.Email
return user, err
}

Expand Down