forge-api-nodejs-client icon indicating copy to clipboard operation
forge-api-nodejs-client copied to clipboard

Why does one need to pass both credentials and client

Open ElectricPulse opened this issue 10 months ago • 0 comments

Why does one need to provide to functions like createBucket() both the credentials returned by client.getCredentials() and client itself. What is this nonsense. Should one call getCredentials every time he calls an api function - or should one cache them between calls? Why doesn't the client itself take care of it's credentials - can one leave them out?

ElectricPulse avatar Mar 08 '25 20:03 ElectricPulse