M_Cavus
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
I found this not working because I had not added partitioned: true in defaultCookieAttributes
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
Yes, I've already configured trustedOrigins here's what I've put
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
Meaning?
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
Then I think it's more of a server-side problem, but I'll give it a try with useSession.
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
and my auth-client.ts
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
This is my protected page
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
by adding sub-domains even the pc version on arc no longer works
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
here's my auth.js config on the backend
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
Yes I tried with incognito and even on other mobile but still no and strangely on pc with arc it works but not with safari
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
ah bas I got excited too early it works on ARC PC but when I switch to mobile it doesn't work the same way as safari on PC.
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
Thank you very much, you should have added the advenced parameter so that cookies can reach the frontend.
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
ok thanks for your help, i'll try to solve it if i can i'll give you the solution
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
what I find suspicious is that when I'm local and I go to the get-session api link, it displays the session correctly, whereas in production it returns null, and even worse, there's no error that could facilitate debugging.
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
no it says everything is ok
45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally

45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally

45 replies
BABetter Auth
•Created by M_Cavus on 5/8/2025 in #help
api/auth/get-session returns null in prod but works locally
when I go to the url localhost:8080/api/auth/get-session it sends me back
but when I'm in production it gives me a blank page. Of course with the https link instead of localhost
45 replies