getServerAuthSession returning null in production
I have absolutely no clue how that is happening because I've implemented the same solution in another app before and it works perfectly, but for some reason, this code only words in localhost:
3 Replies
And I use it like this
For some reason, using getServerAuthSession instead of getSession did the trick
This is resolved, but I'll leave it open in case someone has an explanation for this, because I don't
@biglung just in case
Thanks haha
Yeah somehow its just working now 🤷
Wish we knew why!
I think getSession is no longer the correct way to do it, I just don't know why