jckleiner / notion-backup

Automatic Notion workspace backup to Google Drive, Dropbox, pCloud, Nextcloud or to your local machine.
90 stars 36 forks source link

Support dropbox refresh token #3

Closed marcelreppi closed 10 months ago

marcelreppi commented 2 years ago

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!