Update email of existing user entry that was created initially by verifyPhoneNumber API

I have an existing session already and I want that after I verify the email via magicLinkVerify API, the email of that user is updated rather than a new user being created altogether. Is that possible? I was only able to "merge" users when I first created a user with magicLinkVerify API AND THEN verifyPhoneNumber API to which the same existing user is updated (see second screenshot)
No description
No description
1 Reply
heneftees
henefteesOP23h ago
Otherwise, I will override and check if there is an ongoing session (if the sessionToken cookie exists) then delete the newly created session and user entry then manually update the existing user entry

Did you find this page helpful?