Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 569 Bytes

File metadata and controls

16 lines (11 loc) · 569 Bytes

Luggage session manager

build status

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