Magic Link not working with InstantDB (better-auth-instantdb)
Hi! Thanks for this library. I've ran into an issue with Magic Link functionality.
The magic link is being sent to my mail, but the verification process is not working. The $users are not created when using a magic link. I do see that "users are being created", but maybe this magicLink plugin is not working well with instantDB.
SERVER_ERROR: Error: $users entity not found: a03a0d5f-335f-46e1-878c-4e4d1f880106
6 Replies
Here is my auth.ts
cc @daveycodez
Hey I'll take a deeper look at this in a little bit I'm working on a Better Auth UI release rn
no problem! I just found a fix
I had to manually create a $users object
The adapter should do this for you
did you look into the adapter source?
No I didnt look into the src. Has it been tested with magic links?
It shouldn’t function any different for magic links vs normal sign ups
It should create the $user for you in the adapter