Options for App Router protectApi()
protectApi()
Optional
Alternate app router api handler called when the user is not authenticated or is not a member of the specified groups.
Options for App Router
protectApi()