Authenticate client-side applications using PKCE
mainClient-side applications (browsers or Workers) cannot keep an app secret confidential. Never embed a Dropbox app secret in browser or Worker code.
Instead, use the OAuth authorization-code flow with PKCE (Proof Key for Code Exchange) and your app key. PKCE requires a secure context and the Web Crypto API.