Client Side Not Working

I am trying to login using better-auth on client side but i get this error message: "Invalid currentURL and this is the endpoint for my api http://localhost:3000/api/auth/sign-in/email?currentURL=http%3A%2F%2Flocalhost%3A8100%2Fhome
4 Replies
bekacru
bekacru12mo ago
make sure to add your frontend origin to trustedOrigins
Faris
FarisOP12mo ago
Working now. Possible to add in the error message so people in the future will know the issue?
bekacru
bekacru12mo ago
yeah the latest version should have a proper error message
Faris
FarisOP12mo ago
alright nice thanks!

Did you find this page helpful?