Skip to content

Commit

Permalink
add: option to bind RC login with CRM login
Browse files Browse the repository at this point in the history
  • Loading branch information
DaKingKong committed Dec 19, 2024
1 parent b6d8ecf commit a5c2832
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ async function onOAuthCallback({ platform, hostname, tokenUrl, callbackUri, apiU
async function onApiKeyLogin({ platform, hostname, apiKey, additionalInfo }) {
const platformModule = require(`../adapters/${platform}`);
const basicAuth = platformModule.getBasicAuth({ apiKey });
const { successful, platformUserInfo, returnMessage } = await platformModule.getUserInfo({ authHeader: `Basic ${basicAuth}`, hostname, additionalInfo });
const { successful, platformUserInfo, returnMessage } = await platformModule.getUserInfo({ authHeader: `Basic ${basicAuth}`, hostname, additionalInfo, apiKey });
if (successful) {
const userInfo = await saveUserInfo({
platformUserInfo,
Expand Down

0 comments on commit a5c2832

Please sign in to comment.