@luggage/luggage-session

Utils for obtaining and keeping dropbox authentication stuff in user session

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@luggage/luggage-session
Minified + gzip package size for @luggage/luggage-session in KB

Readme

Luggage session manager

Utils for fetching and storing dropbox authentication token.

Usage

import LuggageSession from 'luggage-session'

const session = new LuggageSession({ apiKey: 'dropboxApiKey', redirectUrl: '/app'})

// If token already exists in memory or sessionStorage you will get it
// otherwise this will cause a redirect to dropbox authentication page
const token = session.getToken()

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.