Skip to content

Commit

Permalink
Merge branch 'public-UserInfo'
Browse files Browse the repository at this point in the history
  • Loading branch information
cwarden committed Nov 10, 2023
2 parents 7008313 + 754adbc commit 80058db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
. "github.com/ForceCLI/force/error"
)

func (f *Force) userInfo() (userinfo UserInfo, err error) {
func (f *Force) UserInfo() (userinfo UserInfo, err error) {
url := fmt.Sprintf("%s/services/oauth2/userinfo", f.Credentials.InstanceUrl)
login, err := f.makeHttpRequestSync(NewRequest("GET").AbsoluteUrl(url))
if err != nil {
Expand All @@ -23,7 +23,7 @@ func (f *Force) userInfo() (userinfo UserInfo, err error) {

func getUserInfo(creds ForceSession) (userinfo UserInfo, err error) {
force := NewForce(&creds)
userinfo, err = force.userInfo()
userinfo, err = force.UserInfo()
if err != nil {
return
}
Expand Down

0 comments on commit 80058db

Please sign in to comment.