Version of JS SDK : 2.14.1
When making use of the SDK you can connect to an existing sandbox using the connect method and passing in an API key.
This allows for the use of the .kill() command normally, but .pause does not work and requires the apiKey field passed in again.
const mySandbox = Sandbox.connect(externalId, {
apiKey,
})
mySandbox.kill() // Works as should
mySandbox.pause() // Fails with auth issue, only works when apiKey is passed as a param
It would be cool to have pause work without passing in the apiKey again like .kill.
Please close the Issue and my PR if this is desired behaviour, I made this issue as a user, it was confusing and decided to go ahead and make a fix. Thank you!
Version of JS SDK : 2.14.1
When making use of the SDK you can connect to an existing sandbox using the connect method and passing in an API key.
This allows for the use of the
.kill()command normally, but.pausedoes not work and requires the apiKey field passed in again.It would be cool to have pause work without passing in the apiKey again like
.kill.Please close the Issue and my PR if this is desired behaviour, I made this issue as a user, it was confusing and decided to go ahead and make a fix. Thank you!