DropboxAuthProvider
DropboxAuthProvider(
__namedParameters:DropboxAuthProviderProps):Element
Defined in: src/react/useDropboxAuth.ts:91Â
Provider component for Dropbox OAuth authentication.
Wrap your app with this provider to enable Dropbox authentication. It handles the OAuth 2.0 Authorization Code flow with refresh tokens.
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
Element
Example
import { DropboxAuthProvider } from "@reverbia/sdk/react";
function App() {
return (
<DropboxAuthProvider
appKey={process.env.NEXT_PUBLIC_DROPBOX_APP_KEY}
callbackPath="/auth/dropbox/callback"
>
<MyApp />
</DropboxAuthProvider>
);
}Last updated on