How to set cookie in Express?
I am trying to use the better-auth api methods, I followed the docs and I did everything that was mentioned, but everytime I try to sign-in or sign-up, I find that the cookies are missing, I will share with you the code I have in case I made a mistake and I am not conscious of it:
2 Replies
Running into the same issue where cookies are being set on client, did you find any solution @Shady M.D
Here you go bro, these are the handlers I made to make things work, but I didn't call the endpoints by default provided by
better-auth
like in the docs, instead I literally used the methods directly, you'll understand better if you see the code.