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

don't catch errors in user handlers #48

Closed
wants to merge 1 commit into from
Closed

Conversation

a-type
Copy link

@a-type a-type commented Mar 24, 2022

Moves code which invokes logic defined by the library user outside of the try-catch blocks, so that errors in user-written code are handled (or not) as normally expected by Next.

I'm a little unfamiliar with Next middleware so I'm not confident my moving of NextResponse.next was quite correct, let me know.

@thorwebdev thorwebdev linked an issue Mar 25, 2022 that may be closed by this pull request
@thorwebdev
Copy link
Contributor

@a-type terribly sorry, this slipped through the cracks in the lead-up to Launch Week 🙈 I was wondering, would you be up for also doing https://github.com/supabase-community/supabase-auth-helpers/issues/59 within this PR?

@a-type
Copy link
Author

a-type commented Mar 30, 2022

I'd prefer to leave it as-is, honestly - I didn't end up using Supabase as an auth provider, just wanted to contribute toward one pain point I had in trying it out, but I've had to move on to other work.

@thorwebdev
Copy link
Contributor

Adressed in #92

@thorwebdev thorwebdev closed this May 10, 2022
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.

Handling (or not) userland getServerSideProps errors
2 participants