Function used to dynamically determine whether a request should be treated as a protected route.
The incoming Next.js request.
Return true to require authentication for the request, or false to allow it to continue without protection.
true
false
Function used to dynamically determine whether a request should be treated as a protected route.