authClient.GetSessions() returning null for user data and session data
I have an issue where getsessions function of the authClient is returning null. I am trying to sign up/in a user with google. The auth flow seems to work ie I get a session, user and account stored in my database. I also get the onsuccess handler called after signIn. The issue is, the data is null ie const {data} = authClient.getSession(). I am trying to read the userid so I can send other requests to the database.
I fixed this. Issue was with the cookie settings , specifically domain settings thats why it was not being returned Anyone let me know if you have a similar issue I can try help