fix: OAuth2 key value retrieval

This commit is contained in:
Pragadesh-45 2025-04-10 20:20:56 +05:45
parent 811c492bce
commit 92925648e6

View File

@ -188,7 +188,7 @@ const processAuth = (auth, requestObject) => {
};
} else if (auth.type === 'oauth2') {
const findValueUsingKey = (key) => {
return auth?.oauth2?.find((v) => v?.key == key)?.value || '';
return authValues[key] || '';
};
const oauth2GrantTypeMaps = {
authorization_code_with_pkce: 'authorization_code',