Local/Dev authentication on TanStack.com = INVALID_ORIGIN

Using better auth on TanStack.com now... how the heck can I authenticate in development locally? I added http://localhost:3000 to my trustedOrigins, and even created development apps for github/google, but still get INVALID_ORIGIN when attempting to login with social. I have even disabled CSRF protection temprorarily, but still no dice. I'm not sure what else to try.
2 Replies
The Untraceable
Can you add
logger: {
level: 'debug',
disabled: false,
log: (level, message, ...args) => {
console.log(`[${level}] ${message}`, ...args);
},
},
logger: {
level: 'debug',
disabled: false,
log: (level, message, ...args) => {
console.log(`[${level}] ${message}`, ...args);
},
},
to your auth config and let us know what the debugger is saying, and show us your auth.trustedOrigins list?
Tanner Linsley
Tanner LinsleyOP2w ago
Figured it out It was an env var puzzle via convex

Did you find this page helpful?