-
-
Notifications
You must be signed in to change notification settings - Fork 168
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: add custom error classes #341
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -697,9 +697,9 @@ export default class GoTrueApi { | |||
} | |||
const { event, session } = req.body | |||
|
|||
if (!event) throw new Error('Auth event missing!') | |||
if (!event) throw new AuthEventMissingError() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More a question than a review comment: when will we have auth events go missing? Not too sure how the events portion works.
If there's time, can I trouble you for a short overview pre/post sync?
🎉 This PR is included in version 1.23.0-next.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version 2.0.0-rc.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What kind of change does this PR introduce?
AuthError
instead of throwing a generic error