Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
chore: add some todos
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Dec 4, 2019
1 parent a777120 commit a3f8a3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions oauth/oauth.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ func getUserDataFromGoogle(googleOauthConfig *oauth2.Config, code string) ([]byt
if err != nil {
return nil, fmt.Errorf("code exchange wrong: %s", err.Error())
}
// todo: construct a refresh_token.json file here
// todo: save the configs globally
// todo: get user details i.e. email and name
response, err := http.Get(oauthGoogleUrlAPI + token.AccessToken)
if err != nil {
return nil, fmt.Errorf("failed getting user info: %s", err.Error())
Expand Down

0 comments on commit a3f8a3b

Please sign in to comment.