Skip to content

Commit

Permalink
Merge pull request #258 from cwarden/store-user-id
Browse files Browse the repository at this point in the history
Store UserId When Using OAuth Login
  • Loading branch information
dcarroll committed Feb 16, 2016
2 parents 00fc177 + 9ba0c4b commit a9b1f36
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions login.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ func ForceSaveLogin(creds ForceCredentials) (username string, err error) {
return
}

userId := login["user_id"].(string)
creds.UserId = userId
username = login["username"].(string)

me, err := force.Whoami()
Expand Down

0 comments on commit a9b1f36

Please sign in to comment.