Cannot delete user when sessions are in secondary storage instead of database

When a secondary storage is setup, so sessions are there instead of main database, I try to delete a user but it seems better-auth still expects a sessions table in the main database. Is this expected or a bug?

For context:
  • Secondary storage (Upstash Redis)
  • Main database (postgreSQL with DrizzleORM)
  • No cookie caching
Was this page helpful?