k-capehart / go-salesforce

Salesforce REST API client written in Go
https://pkg.go.dev/github.com/k-capehart/go-salesforce/v2
MIT License
30 stars 6 forks source link

Expose auth in Salesforce struct for external access #43

Closed iamber12 closed 5 months ago

iamber12 commented 5 months ago

Description:

Currently, the auth field in the Salesforce struct is private, which limits the ability to directly access the authentication token needed for certain API calls. Specifically, I need to send a GET request to retrieve version data of ContentVersion objects and fetch the actual content, which requires the auth token.

Proposed Solution:

Modify the auth field to be public, enabling external packages to access and utilize the authentication token directly.

Rationale:

Exposing the auth field will improve the usability of the Salesforce client and support advanced integration scenarios that require direct access to authentication details.

iamber12 commented 5 months ago

PR raised to address this issue: #44 .