nuvention-web / coffee-chat

0 stars 0 forks source link

oauth callback needs not hardcoded url #45

Open GregChan opened 8 years ago

GregChan commented 8 years ago

In callback.js

auth.linkedInOauth2.authCode.getToken({
            code: code,
            state: state,
            redirect_uri: 'http://localhost:1337/callback'
        },
        saveToken);

The redirect_uri is hard coded to localhost. Make this generic to the host.