Query data without authorization


I’m trying to use the default Next.js dynamic page with api routes, with no authentication. Like:

localhost/task/[:taskId] to render single task.

localhost/api/task/[:taskId] to query(‘tasks’).filterWhere(‘id’, req.query.id).fetchOne().

However it seems to fail due to missing auth. Is it possible to avoid using authentication or work around it?

What error message do you get?