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

[SDK-3553] Improved callback errors #835

Merged
merged 6 commits into from
Oct 3, 2022
Merged

[SDK-3553] Improved callback errors #835

merged 6 commits into from
Oct 3, 2022

Conversation

adamjmcgrath
Copy link
Contributor

📋 Changes

Improve errors from callback handler:

  • better explanation when the login request's state cookie is not found in the callback request
  • better explanation (and 404) when the callback request is called when not part of the login dance
  • error types for RP and OP errors

@adamjmcgrath adamjmcgrath added the review:small Small review label Oct 3, 2022
@adamjmcgrath adamjmcgrath requested a review from a team as a code owner October 3, 2022 14:45
@vercel
Copy link

vercel bot commented Oct 3, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated
nextjs-auth0 ⬜️ Ignored (Inspect) Oct 3, 2022 at 3:46PM (UTC)

@Widcket
Copy link
Contributor

Widcket commented Oct 3, 2022

CI is failing.

constructor() {
/* c8 ignore next */
super(MissingStateParamError.message);
}
Copy link
Contributor

@Widcket Widcket Oct 3, 2022

Choose a reason for hiding this comment

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

Doesn't this need the Object.setPrototypeOf(this, MissingStateParamError.prototype) for ES5? Same for all the other errors in this file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch 👍 ffdd196

@adamjmcgrath adamjmcgrath merged commit d5f82b3 into vNext Oct 3, 2022
@adamjmcgrath adamjmcgrath deleted the state-errors branch October 3, 2022 16:22
@adamjmcgrath adamjmcgrath mentioned this pull request Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:small Small review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants