From c3f8959c548f4326d3e100d99c14322535cb491d Mon Sep 17 00:00:00 2001 From: lohxt1 Date: Wed, 19 Mar 2025 17:09:40 +0530 Subject: [PATCH] updates --- .../RequestPane/Auth/OAuth2/AuthorizationCode/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js index 9c32365c6..f6ebe36e4 100644 --- a/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js +++ b/packages/bruno-app/src/components/RequestPane/Auth/OAuth2/AuthorizationCode/index.js @@ -12,6 +12,7 @@ import toast from 'react-hot-toast'; import Oauth2TokenViewer from '../Oauth2TokenViewer/index'; import { cloneDeep, find } from 'lodash'; import { interpolateStringUsingCollectionAndItem } from 'utils/collections/index'; +const BRUNO_OAUTH2_SERVER_CALLBACK_URL = `http://localhost:9876/callback`; const OAuth2AuthorizationCode = ({ save, item = {}, request, handleRun, updateAuth, collection, folder }) => { const dispatch = useDispatch(); @@ -221,9 +222,8 @@ const OAuth2AuthorizationCode = ({ save, item = {}, request, handleRun, updateAu let value = oAuth[key] || ''; let shouldAuthorizeInDefaultBrowser = key == 'callbackUrl' && Boolean(authorizeInDefaultBrowser); if (shouldAuthorizeInDefaultBrowser) { - value = 'http://localhost:9876/callback' + value = BRUNO_OAUTH2_SERVER_CALLBACK_URL; } - console.log("input", shouldAuthorizeInDefaultBrowser); return (