Session is null

I'm trying to access the session on the client side and it keeps returning null when I'm trying to access with email and password. The session shows up in my database and everything. I'm just stumped since i followed the documentation and everything ``` export const auth = betterAuth({ database: drizzleAdapter(db, { provider: "pg", schema }), plugins: [ nextCookies() ], emailAndPassword: { enabled: true, async sendResetPassword(data, request) { // Implement reset later } }, })
2 Replies
lonelyplanet
lonelyplanet2w ago
Mind sharing your authclient.ts aswell as where you are calling the api that returns a null session
AllDaeEveryDae
AllDaeEveryDaeOP2w ago
I solved it, turns out I was using the wrong URL in my .env variables haha

Did you find this page helpful?