Automating Google OAuth2.0 testing in Apidog when registration API requires authorization code

I plan to use Apidog test scenario to test register api which is using google oAuth2.0. When the flow redirect to the google auth page I can’t not input user name and password and redirect to my api to complete the registration. Does there have any idea to solve this situation?
ps. In my registration callback api expect to get the code from the google not the access token

Hi, do you mean that a certain step in the test scenario is an endpoint protected by OAuth 2.0, and when executing this step, the OAuth 2.0 authentication window does not automatic pop up?