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

[Social Auth] Social errors are not displayed properly #582

Closed
LoicPoullain opened this issue Dec 4, 2019 · 1 comment
Closed

[Social Auth] Social errors are not displayed properly #582

LoicPoullain opened this issue Dec 4, 2019 · 1 comment
Labels

Comments

@LoicPoullain
Copy link
Member

LoicPoullain commented Dec 4, 2019

Issue

Social errors are not displayed properly in the terminal. For example, if I give a bad field name to Facebook provider, I just get an error with no description.

Invalid code

const { userInfo } = await this.facebook.getUserInfo(ctx, { fields: [ 'user_birthday' ] });

Expected

Error: An error occurred when requesting the user information
{
  "error": {
    "message": "(#100) Tried accessing nonexisting field (user_birthday) on node type (User)",
    "type": "OAuthException",
    "code": 100,
    "fbtrace_id": "A7-N2xRP123Am_brc3fK55q"
  }
}

Actual

Error: 

-> InvalidStateError, AuthorizationError, UserInfoError, InvalidJWTError.

This was referenced Dec 4, 2019
@LoicPoullain
Copy link
Member Author

Fixed in v1.3.1

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

No branches or pull requests

1 participant