I already try to call getServerSession
in client side it works:
This is my auth code:
This is API route that call getServerSession
how to make in this API can get session.user.email
?
I want to make API can get session.user.email for post data every day by use crons on vercel.