Socket
Book a DemoInstallSign in
Socket

dropbox-oauth-popup

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dropbox-oauth-popup

This is a simple addition built onto the Dropbox SDK that allows for OAuth in the browser to be done via a popup window.

3.1.0
latest
Source
npmnpm
Version published
Weekly downloads
92
6.98%
Maintainers
1
Weekly downloads
 
Created
Source

Logo

npm npm jsDelivr hits (npm) GitHub package.json dependency version (prod)

This is a simple addition built onto the Dropbox SDK that allows for OAuth in the browser to be done via a popup window.

You can view our documentation on GitHub Pages.

Usage

  • Create a new instance of the DropboxPopup class
const popup = new DropboxPopup({
    clientId: 'XXXXXXXXXX',
    clientSecret: 'XXXXXXXXXX',
    redirectUri: 'https://XXXXXXXXXX'
});
  • Run the popup window, giving your callback function for use with the DropboxAuth object
popup.authUser().then((auth) => {
    const dbx = new Dropbox(auth);
}).catch((error) => {
    console.err(error);
})

Distributions

If you are using this via a node project compiled into browser assets, you can install via npm

npm install --save-dev dropbox-oauth-popup

Or you can use it directly in your browser be including the following tag

<script src="https://cdn.jsdelivr.net/npm/dropbox-oauth-popup@3.1.0"></script>

License

This package is distributed under the MIT license, please see LICENSE for more information.

Keywords

dropbox

FAQs

Package last updated on 21 Oct 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.