Files
better-auth/packages
Maxwell 3244e388b8 chore(trustedOrigin): warn if invalid value is passed (#2699)
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.
2025-05-22 12:44:03 -07:00
..
2025-05-15 20:45:34 -07:00
2025-05-15 20:45:34 -07:00