File tree 3 files changed +4
-39
lines changed
3 files changed +4
-39
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,6 @@ const path = require('path')
6
6
7
7
const HOST = process . env . HOST
8
8
const PORT = process . env . PORT
9
- // const HOST = 'localhost'
10
- // const PORT = process.env.PORT || 3001
11
9
12
10
const app = express ( )
13
11
const router = express . Router ( '/productItems' )
Original file line number Diff line number Diff line change @@ -4,17 +4,11 @@ const fs = require('fs')
4
4
5
5
module . exports . ConnectedAppClient = async ( ) => {
6
6
const conn = new jsforce . Connection ( )
7
- // const jwtTokenResponse = await getToken({
8
- // iss: process.env.CLIENT_ID,
9
- // sub: process.env.USERNAME,
10
- // aud: process.env.LOGIN_URL,
11
- // privateKey: process.env.PRIVATE_KEY,
12
- // })
13
7
const jwtTokenResponse = await getToken ( {
14
- iss : '3MVG9fe4g9fhX0E7T9UDCEjGUAP2mCUyVuoSgjELc0yg1sAcjP_NZ16ecPDVsW04_MkXtWuJiLKo4j9rHhP9b' ,
15
-
16
- aud : 'https://login.salesforce.com' ,
17
- privateKey : fs . readFileSync ( __dirname + '/server.key' ) . toString ( 'utf-8' ) ,
8
+ iss : process . env . CLIENT_ID ,
9
+ sub : process . env . USERNAME ,
10
+ aud : process . env . LOGIN_URL ,
11
+ privateKey : process . env . PRIVATE_KEY ,
18
12
} )
19
13
20
14
conn . initialize ( {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments