Sandbox TBA token reset
I read when you refresh your sandbox the tokens for TBA auth need to be reset and updated for integrations. We have dedicated DEV environments calling restlets and such.
“The Token Key and Token Secret are deleted in your primary sandbox account after each sandbox refresh, and you must regenerate them on your primary sandbox account. This has no impact on the Token Key and Token Secret used in your production account.”
Is there a helpful article or has anyone figured out a way to automate the process.
I was thinking of a suitelet that checks the enviroment
var runtimeEnv = JSON.stringify(runtime.envType);
if(runtimeEnv==="\"SANDBOX\"") then creates the tokens again programmatically then calls our central webservice to update tokens. Any help would be appreciated.