Using OAuth 2.0 with offline access
Oct 19, 2022Dropbox Platform Team
Summary
This post details the implementation of offline access for Dropbox's OAuth 2.0 flow. It explains how to obtain and use refresh tokens to acquire new short-lived access tokens, enabling applications to operate long-term without requiring the user to be present. It covers the authorization endpoints for both online and offline access, the token exchange process, and the secure storage and usage of refresh tokens. It also provides tips on choosing between online and offline access, and best practices for using response types and redirect URIs.