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

feat: Introduce unauthorized() #2

Open
wants to merge 16 commits into
base: elef/introduce-error-builder
Choose a base branch
from

Conversation

panteliselef
Copy link
Owner

No description provided.

### What?
Similar to the notFound() function and the `notFound.js` file, this PR follows the convention and introduces the `forbidden()` function along side the `forbiddden.js` file.

### Why?
While the available `notFound` and `redirect` functions can get you a long way, there is only so much you can do with them.

Developers need a way to handle the authorized state of a user across the multiple "contexts" next has, by that I am referring to components, api routes, and server actions.
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.

1 participant