Complete v1 loop for bot-based integrations

This commit is contained in:
Tuan Dang
2022-12-08 23:22:44 -05:00
parent 46fe724012
commit 1757f0d690
33 changed files with 1085 additions and 638 deletions
+2 -2
View File
@@ -5,7 +5,7 @@ import {
OAUTH_CLIENT_SECRET_HEROKU
} from '../config';
import {
OAUTH_TOKEN_URL_HEROKU
INTEGRATION_HEROKU_TOKEN_URL
} from '../variables';
/**
@@ -55,7 +55,7 @@ const exchangeRefreshHeroku = async ({
let accessToken;
try {
const res = await axios.post(
OAUTH_TOKEN_URL_HEROKU,
INTEGRATION_HEROKU_TOKEN_URL,
new URLSearchParams({
grant_type: 'refresh_token',
refresh_token: refreshToken,