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