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

sendTokenRequest not recognizing error #193

Open
davepar opened this issue Nov 5, 2024 · 0 comments
Open

sendTokenRequest not recognizing error #193

davepar opened this issue Nov 5, 2024 · 0 comments

Comments

@davepar
Copy link

davepar commented Nov 5, 2024

The sendTokenRequest() call in request.ts does the following check:

if ("error" in data && typeof data.error === "string") {...

However, the response received from Facebook was this:

{"error":
  {
    "message":"Error validating client secret.",
    "type":"OAuthException",
    "code":1,
    "fbtrace_id":"<redacted>"}
}

It seems that the error can also be an object? The result is that I get the error during the tokens.accessToken() call that masks the actual problem.

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

1 participant