Fixed slack auth link for prod

This commit is contained in:
Jori Lallo
2016-05-23 20:44:43 -07:00
parent 67ca3c2ae2
commit 9c3d30e87e
6 changed files with 24 additions and 25 deletions

View File

@@ -1,8 +1,5 @@
import keyMirror from 'fbjs/lib/keyMirror';
// Get application version from package.json 😅
import { name, version } from '../package.json';
// Constant KEYS 🔑
const keys = keyMirror({
JWT_STORE_KEY: null, // localStorage key for JWT
@@ -10,7 +7,7 @@ const keys = keyMirror({
// Constant values
const constants = {
API_USER_AGENT: `${name}/${version}`,
API_USER_AGENT: `Atlas`,
API_BASE_URL: 'http://localhost:3000/api',
};

View File

@@ -24,7 +24,9 @@ export default class SlackAuthLink extends React.Component {
const params = {
client_id: '30086650419.30130733398',
scope: this.props.scopes.join(" "),
redirect_uri: 'http://localhost:3000/auth/slack/',
redirect_uri: __DEV__ ?
'http://localhost:3000/auth/slack/' :
'https://beautifulatlas.herokuapp.com/auth/slack/',
state: this.state.oauthState,
};