On my local computer, I'm just using the web authentication without using the advance config.
I tried that same process on the remote computer following the instructions here: Remote Setup
it works, but after a couple of hrs, the token expires and have to do it again. that's why we went to use the advance config setup. But can't get it to work automatically without human intervention.
UPDATE:
got it to work now but it's not within rClone. I ended up manually creating a script to get new token and update the config file. we used the password grant API which I don't think rClone have a function for this.