Class: DropboxAuth

DropboxAuth

The DropboxAuth class that provides methods to manage, acquire, and refresh tokens.

new DropboxAuth(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Argument Description
fetch function <optional>
fetch library for making requests.
accessToken String <optional>
An access token for making authenticated requests.
AccessTokenExpiresAt Date <optional>
Date of the current access token's expiration (if available)
refreshToken String <optional>
A refresh token for retrieving access tokens
clientId String <optional>
The client id for your app. Used to create authentication URL.
clientSecret String <optional>
The client secret for your app. Used to create authentication URL and refresh access tokens.
domain String <optional>
A custom domain to use when making api requests. This should only be used for testing as scaffolding to avoid making network requests.
domainDelimiter String <optional>
A custom delimiter to use when separating domain from subdomain. This should only be used for testing as scaffolding.
customHeaders Object <optional>
An object (in the form of header: value) designed to set custom headers to use during a request.
dataOnBody Boolean <optional>
Whether request data is sent on body or as URL params. Defaults to false.