diff --git a/packages/app-store/webex/api/callback.ts b/packages/app-store/webex/api/callback.ts index 7ad6017168..9a0c4fef6d 100644 --- a/packages/app-store/webex/api/callback.ts +++ b/packages/app-store/webex/api/callback.ts @@ -17,14 +17,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) const redirectUri = encodeURI(`${WEBAPP_URL}/api/integrations/${config.slug}/callback`); const authHeader = "Basic " + Buffer.from(client_id + ":" + client_secret).toString("base64"); const result = await fetch( - "https://webexapis.com/v1/access_token?grant_type=authorization_code&client_id" + - client_id + - "&client_secret=" + - client_secret + - "&code=" + - code + - "&redirect_uri=" + - redirectUri, + `https://webexapis.com/v1/access_token?grant_type=authorization_code&client_id=${client_id}&client_secret=${client_secret}&code=${code}&redirect_uri=${redirectUri}`, { method: "POST", headers: {