mirror of
https://github.com/better-auth/better-auth.git
synced 2026-06-03 12:57:09 -05:00
Right now, if an invalid trusted origin is passed, it becomes very hard to debug and find the cause of a given endpoint failing. As far as I've seen, there error can be as undescriptive as: dev: # SERVER_ERROR: TypeError: Cannot read properties of undefined (reading 'includes') dev: at Array.some (<anonymous>) dev: POST /api/auth/sign-up/email 500 in 915ms This will throw an error stating that a valid trusted origins list is required.