2.2.0 • Published 4 years ago

@luggage/luggage-session v2.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

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()
2.2.0

4 years ago

1.0.15

6 years ago

1.0.13

6 years ago