authInterrupts
Learn how to enable the experimental `authInterrupts` configuration option to use `forbidden` and `unauthorized`.
The authInterrupts
configuration option allows you to use forbidden
and unauthorized
APIs in your application. While these functions are experimental, you must enable the authInterrupts
option in your next.config.js
file to use them: