File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ async function getAccessToken(firmId, authCode) {
33
33
const grantType = "authorization_code" ;
34
34
let requestDetails = {
35
35
method : "POST" ,
36
- url : `https:// ${ BASE_URL } /f/${ firmId } /oauth/token?client_id=${ process . env . SF_API_CLIENT_ID } &client_secret=${ process . env . SF_API_SECRET } &redirect_uri=${ redirectUri } &grant_type=${ grantType } &code=${ authCode } ` ,
36
+ url : `${ BASE_URL } /f/${ firmId } /oauth/token?client_id=${ process . env . SF_API_CLIENT_ID } &client_secret=${ process . env . SF_API_SECRET } &redirect_uri=${ redirectUri } &grant_type=${ grantType } &code=${ authCode } ` ,
37
37
} ;
38
38
const response = await axios ( requestDetails ) ;
39
39
firmCredentials . storeNewTokenPair ( firmId , response . data ) ;
@@ -66,7 +66,7 @@ async function refreshTokens(instance, firmId) {
66
66
access_token : firmTokens . accessToken ,
67
67
} ;
68
68
const response = await instance . post (
69
- `https:// ${ BASE_URL } /f/${ firmId } /oauth/token` ,
69
+ `${ BASE_URL } /f/${ firmId } /oauth/token` ,
70
70
data
71
71
) ;
72
72
firmCredentials . storeNewTokenPair ( firmId , response . data ) ;
You can’t perform that action at this time.
0 commit comments