Anonymous user account linking problem

I have nextjs project in which i use betterauth. When account linking happens old session cookies are not deleted.

Steps to reproduce:
  1. User signs in anonymously
  2. User signs in (or signs up) via email
  3. Anonymous session cookies are not deleted which causes weird behaviors
Was this page helpful?