AuthenticMailbox
AuthenticMailbox
BABetter Auth
Created by AuthenticMailbox on 3/16/2025 in #help
E2E Tests with BetterAuth
Hello, I am making E2E tests and am having difficulties authenticating my API requests. I am making requests with fetch (should I use something else?) and naively thought it would be enough to use use credentials: 'include' to authenticate with cookies. I suspect this doesn't work because BetterAuth sets cookie samsite attribute to lax, thus ignoring credentials: 'include'. So in short my question is, how am I supposed to do E2E testing with BetterAuth?
3 replies