Anonymous plugin + Convex instantly clears session
Hi folks - just posting here in hopes of getting some additional visibility on the issue. It seems like the anonymous plugin is able to create a session, but then the subsequent get-session call clears the cookie. There is an open PR to fix the issue, it just needs to be reviewed / merged 
Bug report: https://github.com/better-auth/better-auth/issues/5824
Open PR: https://github.com/better-auth/better-auth/pull/5825
Happy to help provide any additional reproduction info if needed, just ping me. Thanks!
Bug report: https://github.com/better-auth/better-auth/issues/5824
Open PR: https://github.com/better-auth/better-auth/pull/5825
Happy to help provide any additional reproduction info if needed, just ping me. Thanks!
GitHub
Is this suited for github? Yes, this is suited for github To Reproduce Reproduction Steps Enable the anonymous plugin: betterAuth({ plugins: [ anonymous({ emailDomainName: 'localhost:3000' ...
GitHub
Summary
Guard the anonymous post-auth middleware so it only deletes the previous anonymous account when linking to a new, non-anonymous user.This keeps newly created Convex anonymous users alive a...
Guard the anonymous post-auth middleware so it only deletes the previous anonymous account when linking to a new, non-anonymous user.This keeps newly created Convex anonymous users alive a...