Hey encountering an issue im struggling to get around. I have a generic oauth config setup that authenticates correctly, creates the users and sesison in the DB etc so the server pathway seems okay.
But when I trigger the sign in from my front-end vite app (port 3001) with the callback of '/dashboard' after succesful login it redirects me to the hono api (port 3000) '/dashboard' instead.
I've setup the trustedOrigins to be http://localhost:3001 right now in development - is there something else im missing with redirect config back to the better-auth client?
Solution
actually scratch that - just put full url in the callback url