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

15.1 docs: forbidden, unauthorized, and authInterrupts #73039

Merged
merged 22 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
0668caa
Add placeholders for `unauthorized.js` and `forbidden.js`
delbaoliveira Nov 21, 2024
fcdbd8f
Add placeholders for `unstable_unauthorized` and `unstable_forbidden`
delbaoliveira Nov 21, 2024
20c73ae
Add unstable tag
delbaoliveira Nov 21, 2024
47b73ab
Fix broken links
delbaoliveira Nov 21, 2024
009abb1
Merge branch 'canary' into docs-151-forbidden-unauthorized
delbaoliveira Nov 22, 2024
6acd037
Add authInterrupts
delbaoliveira Nov 22, 2024
61019f5
Remove unstable
delbaoliveira Nov 22, 2024
23ec225
Clean up
delbaoliveira Nov 22, 2024
bd0c9e3
Add examples for unauthorized()
delbaoliveira Nov 25, 2024
be47eed
Add role-based example for `forbidden()`
delbaoliveira Nov 25, 2024
7ac20b2
Add min example for forbidden.js
delbaoliveira Nov 25, 2024
e1e6c20
add example for unauthorized.js
delbaoliveira Nov 25, 2024
8624f65
Update forbidden.mdx
delbaoliveira Nov 25, 2024
2f6dfb2
Add mutations w/ server actions example
delbaoliveira Nov 25, 2024
085f691
Fix headings in notfound.js page
delbaoliveira Nov 25, 2024
0fdf66f
Merge branch 'canary' into docs-151-forbidden-unauthorized
delbaoliveira Nov 25, 2024
6a457f5
Update unauthorized.mdx
delbaoliveira Nov 25, 2024
fe8511b
Merge branch 'docs-151-forbidden-unauthorized' of https://github.com/…
delbaoliveira Nov 25, 2024
ec4cc60
Review
delbaoliveira Nov 25, 2024
fa60d9a
Merge branch 'canary' into docs-151-forbidden-unauthorized
delbaoliveira Nov 25, 2024
8eac440
Update docs/01-app/03-api-reference/03-file-conventions/unauthorized.mdx
delbaoliveira Nov 25, 2024
fdf1199
Update docs/01-app/03-api-reference/05-config/01-next-config-js/authI…
delbaoliveira Nov 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/01-app/03-api-reference/03-file-conventions/forbidden.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: forbidden.js
description: API reference for the forbidden.js special file.
related:
links:
- app/api-reference/functions/unstable_forbidden
version: unstable
---

The **forbidden** file is used to render UI when the [`unstable_forbidden`](/docs/app/api-reference/functions/unstable_forbidden) function is invoked during authentication.

## Version History

| Version | Changes |
| --------- | -------------------------- |
| `v15.1.0` | `forbidden.js` introduced. |
16 changes: 16 additions & 0 deletions docs/01-app/03-api-reference/03-file-conventions/unauthorized.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: unauthorized.js
description: API reference for the unauthorized.js special file.
related:
links:
- app/api-reference/functions/unstable_unauthorized
version: unstable
---

The **unauthorized** file is used to render UI when the [`unstable_unauthorized`](/docs/app/api-reference/functions/unstable_unauthorized) function is invoked during authentication.

## Version History

| Version | Changes |
| --------- | ----------------------------- |
| `v15.1.0` | `unauthorized.js` introduced. |
16 changes: 16 additions & 0 deletions docs/01-app/03-api-reference/04-functions/unstable_forbidden.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: forbidden
description: API Reference for the forbidden function.
version: unstable
related:
links:
- app/api-reference/file-conventions/forbidden
---

The `unstable_forbidden` function allows you to render the [`forbidden.js` file](/docs/app/api-reference/file-conventions/forbidden) during authentication.

## Version History

| Version | Changes |
| --------- | -------------------------------- |
| `v15.1.0` | `unstable_forbidden` introduced. |
delbaoliveira marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: unstable_unauthorized
description: API Reference for the unstable_unauthorized function.
version: unstable
related:
links:
- app/api-reference/file-conventions/unauthorized
---

The `unstable_unauthorized` function allows you to render the [`unauthorized.js` file](/docs/app/api-reference/file-conventions/unauthorized) during authentication.

## Version History

| Version | Changes |
| --------- | ----------------------------------- |
| `v15.1.0` | `unstable_unauthorized` introduced. |
delbaoliveira marked this conversation as resolved.
Show resolved Hide resolved
Loading