I created a script to automatically access public Google Drive folder with user provided token.
For it to works it needs to create config file with following stracture.
[gdrive]
type = drive
scope = drive
token = {"access_token":"xxxxxx","token_type":"xxxxx","refresh_token":"xxxxx","expiry":"xxxxx"}
[tmp]
type = drive
scope = drive
root_folder_id = (folder ID of public folder)
token = {"access_token":"xxxxxx","token_type":"xxxxx","refresh_token":"xxxxx","expiry":"xxxxx"}
And the remotes share the same token.
But when rclone acquires a new token, it only applies to one of them, and rclone can no longer access tmp remote.