Hi I have created an account using third party re...
# general
k
Hi I have created an account using third party recipe : google/facebook/apple Now I want to shift that account from google to passwordlessUsers and login in using mobile number and otp without changing userId . And user account should be removed from thirdparty table Is that possible with supertoken ?
r
hey @krrishan you could follow our migration guide, and then do a user ID mapping.
k
I already checked that : It is for mapping the existing userIds (from your old auth provider) to supertoken created userId But my requirement is to move the account created using thirdpartyrecipe withing the supertoken to the passwordless user table with provided phone number as login method
r
oh yea i know
u create the user in passwordless with the email -> delete the existing third party user account (keepo track of the user id though) -> map new passwordless user id -> old third party user ID
deleting the third partyt account will delete the user's existing sessions, metadata etc.. keep that in mind
if you want to retain all that, then you shuld instead enable account linking, and then create the passwordless users and link to existing account (but this is paid feature)
k
Sure thanks
so deleting user will require only userId So it should be mapped after creating a new user right ?
r
It should be mapped after creating the new user and after deleting the existing one
k
thankyou
2 Views