signup email from sever

I’m calling auth.api.signupWithEmail, and I’m getting the same response as when I call it from authClient.
However, the next getSession call returns null, whereas when signup is called from the client, it works fine.
I went through the method flow but didn’t find anything unusual.
3 Replies
nikatune
nikatune5d ago
use headers headers:await headers()
Rupesh
RupeshOP4d ago
thanks for the reply. where to put this.
Ping
Ping4d ago
Are you making sure that the cookies are getting sent to the client? We usually recommend using authClient for these types of reasons

Did you find this page helpful?