Fixed slack auth link for prod
This commit is contained in:
1
dist/bundle.0fbe6de0fb85ebae62bf.js.map
vendored
1
dist/bundle.0fbe6de0fb85ebae62bf.js.map
vendored
@@ -1 +0,0 @@
|
||||
{"version":3,"file":"bundle.0fbe6de0fb85ebae62bf.js","sources":["webpack:///bundle.0fbe6de0fb85ebae62bf.js","webpack:///"],"mappings":"AAAA;ACwwHA;AAy/EA;AAyiFA;AA28FA;AAr1IA;AA45IA;;;;;AAo9GA;;;;;AAglFA;AAg7GA;;;;;;;;;;;;;;AAgxCA;AA+rHA;AA8pEA;AAklEA;AAmqEA;AA0gEA;AAowFA;AAunIA;AA2sEA;AAwiEA;AAygDA;AA6hJA;AA4kEA;AA8iIA;AA+mHA;AAu5FA;AA8zEA","sourceRoot":""}
|
||||
File diff suppressed because one or more lines are too long
1
dist/bundle.652211b0ea5e60dd6e46.js.map
vendored
Normal file
1
dist/bundle.652211b0ea5e60dd6e46.js.map
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bundle.652211b0ea5e60dd6e46.js","sources":["webpack:///bundle.652211b0ea5e60dd6e46.js","webpack:///"],"mappings":"AAAA;ACwwHA;AAy/EA;AAyiFA;AA28FA;AAr1IA;AA45IA;;;;;AAo9GA;;;;;AAglFA;AAg7GA;;;;;;;;;;;;;;AAgxCA;AA0rHA;AA8pEA;AAklEA;AAmqEA;AA0gEA;AAowFA;AAunIA;AA2sEA;AAwiEA;AAygDA;AAujJA;AA25EA;AA22HA;AAihIA;AAg5EA;AAq1EA","sourceRoot":""}
|
||||
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -15,5 +15,5 @@
|
||||
// });
|
||||
// };
|
||||
</script>
|
||||
<script type="text/javascript" src="/static/bundle.0fbe6de0fb85ebae62bf.js"></script></body>
|
||||
<script type="text/javascript" src="/static/bundle.652211b0ea5e60dd6e46.js"></script></body>
|
||||
</html>
|
||||
@@ -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',
|
||||
};
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user