forbidden.js
The forbidden file is used to render UI when the forbidden
function is invoked during authentication. Along with allowing you to customize the UI, Next.js will return a 403
status code.
Reference
Props
forbidden.js
components do not accept any props.
Version History
Version | Changes |
---|---|
v15.1.0 | forbidden.js introduced. |