Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getOAuth2Response question #499

Closed
murphyryan1 opened this issue Jul 12, 2023 · 1 comment
Closed

getOAuth2Response question #499

murphyryan1 opened this issue Jul 12, 2023 · 1 comment

Comments

@murphyryan1
Copy link

murphyryan1 commented Jul 12, 2023

Hi there,

I am trying to upgrade the httpyac package in a project and the method getOAuth2Response has been moved to the plugins but I am not sure how to go about calling it now.

We were importing the variables package and doing

const response = await varaibles.replacer.getOAuth2Response('implicit', 'oauth2', { variables });

but I can't figure out how to do that now that it is in the plugins folder and the plugins folder isn't exported.

Could we just do this:

image

or is there a better way I am not seeing?

Thanks in advance.

@AnWeber
Copy link
Owner

AnWeber commented Jul 14, 2023

All methods inside plugins are not really public for me. Since I want to eventually support browsers in the future, they must not become public either, since NodeJS logic is included there. I will instead add the method as a separate helper method $getOAuth2Response in the javascript execution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants