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

fix(provider utils): return correct error response #660

Merged
merged 3 commits into from
May 3, 2020

Conversation

JoaoPedroAS51
Copy link
Collaborator

This PR fixes the error response of addAuthorize and initializePasswordGrantFlow.
It returns the data provided by the original response instead of returning NuxtServerError. That way we can access the error message of the response.

Fixes #659

@JoaoPedroAS51 JoaoPedroAS51 requested a review from pi0 May 1, 2020 22:47
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice idea

@pi0 pi0 merged commit 49d4a60 into dev May 3, 2020
@pi0 pi0 deleted the fix/error-response-server-middleware branch May 3, 2020 19:46
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

Successfully merging this pull request may close these issues.

500 error when login fails with Passport password grant
2 participants