Furpan
Furpan
BABetter Auth
Created by DeepSeek R2 on 5/26/2025 in #help
How to use `getSession()` on NextJS Server action ?
https://www.better-auth.com/docs/reference/faq - covers the function to an extent just to cover the basics Is the same cookie that is passed to the hono service, also available to your server action on the frontend service? And like @daveycodez mentioned, seeing at least what you have set for advanced.crossSubDomainCookies, advanced.defaultCookieAttributes and trustedOrigins in your auth config could be useful Out of curiosity, why turn the frontend service to using server execution? Kind of defeats the architecture
7 replies