When I tried to setup the automatic backup with GitHub actions I realized that the OAuth token you can generate in the Dropbox Developer App Console is only short-lived and expires after a few hours. I figured out a way to automate the setup using refresh tokens which do not expire (see the description of refresh_token in the RETURNS section of the /oauth2/token API call.
I have added the functionality and documentation for it. Tested it locally and with GitHub Actions and it worked well!
When I tried to setup the automatic backup with GitHub actions I realized that the OAuth token you can generate in the Dropbox Developer App Console is only short-lived and expires after a few hours. I figured out a way to automate the setup using refresh tokens which do not expire (see the description of
refresh_token
in theRETURNS
section of the /oauth2/token API call.I have added the functionality and documentation for it. Tested it locally and with GitHub Actions and it worked well!