wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
12.7k stars 1.13k forks source link

CRUD handlers use auth dependant types even if auth is not enabled #2120

Open infomiho opened 1 week ago

infomiho commented 1 week ago

Because CRUD handlers are by default private they depend on auth being enabled in their definition.

Screenshot 2024-06-24 at 16 30 05

We could do a couple of things:

EDIT: this might be a case of using the wrong imports e.g. UnauthenticatedQueryDefinition should be used