mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 19:29:51 -04:00
add prod redirect url
This commit is contained in:
parent
ec834c8f7f
commit
6d7280f2c0
|
@ -5,8 +5,9 @@ import { makeAPIGetCall } from './utils';
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
const dev = process.env.NODE_ENV === 'development';
|
const dev = process.env.NODE_ENV === 'development';
|
||||||
export const API_ENDPOINT = 'http://localhost:5000/api';
|
export const API_ENDPOINT = 'http://localhost:5000/api';
|
||||||
export const ION_AUTHORIZATION_ENDPOINT =
|
export const ION_AUTHORIZATION_ENDPOINT = dev
|
||||||
'https://ion.tjhsst.edu/oauth/authorize?response_type=code&client_id=rNa6n9YSg8ftINdyVPpUsaMuxNbHLo9dh1OsOktR&scope=read&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fion%2Fcallback';
|
? 'https://ion.tjhsst.edu/oauth/authorize?response_type=code&client_id=rNa6n9YSg8ftINdyVPpUsaMuxNbHLo9dh1OsOktR&scope=read&redirect_uri=http%3A%2F%2Flocalhost%3A3000%2Fauth%2Fion%2Fcallback'
|
||||||
|
: 'https://ion.tjhsst.edu/oauth/authorize?response_type=code&client_id=rNa6n9YSg8ftINdyVPpUsaMuxNbHLo9dh1OsOktR&scope=read&redirect_uri=https%3A%2F%2Fwheelshare.space%2Fauth%2Fion%2Fcallback';
|
||||||
|
|
||||||
axios.defaults.baseURL = API_ENDPOINT;
|
axios.defaults.baseURL = API_ENDPOINT;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user