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

Call to /oauth2/token should allow a redirect_uri to be passed as a urlencoded key #161

Closed
4 of 6 tasks
thecherrie opened this issue Jan 19, 2024 · 1 comment
Closed
4 of 6 tasks
Assignees

Comments

@thecherrie
Copy link

  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?

Describe the bug

The internal call to https://api.sandbox.ebay.com/identity/v1/oauth2/token should allow the redirect_uri to be passed in. Currently the error when I call .getToken() is:

    data: {
      error: 'invalid_request',
      error_description: 'request is missing a required parameter or malformed.'
    }

Code

    const token = await ebayClient.OAuth2.getToken(code);
    ebayClient.OAuth2.setCredentials(token);
    // store this token e.g. to a session
    req.session.token = token

Output

    data: {
      error: 'invalid_request',
      error_description: 'request is missing a required parameter or malformed.'
    }

expected data

  • Paylaod containing the access token.

Would you like to work on this issue?

  • Yes
  • No
  • Maybe
@thecherrie
Copy link
Author

thecherrie commented Jan 19, 2024

OK, found it, it's passed as the ruName? 2nd optional parameter in the getToken() function -- semantics had me confused.

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