npm run serve doesn't pick up env vars
I can't get the npm run serve
to run with
CLIENT_ID=1234.12312321@www.genesys-pgr.org CLIENT_SECRET=dsfdfsdcsdcsdcvdsc npm run serve
It dies at:
POST http://localhost:3000/proxy/oauth/token?grant_type=client_credentials&client_id=defaultclient@localhost 401 (Unauthorized)
dispatchXhrRequest @ xhr.js:178
xhrAdapter @ xhr.js:12
dispatchRequest @ dispatchRequest.js:59
Promise.then (async)
request @ Axios.js:51
Axios.(anonymous function) @ Axios.js:71
wrap @ bind.js:9
loginApp @ LoginService.ts:18
applicationLogin @ login.ts:16
checkAccessTokens @ login.ts:38
./entrypoints/client.tsx @ client.tsx:50
npm -v
: 6.9.0
node -v
: v11.13.0