User Creation
#
ThirdParty MigrationTo migrate users with social accounts we can simply call the SuperTokens Core's signInUp
API with the provider Id and the user's third party userId.
For example:
If we were importing a user with Google as their provider with their third party userId being 106347997792363870000
, we can run the following curl command to import the user.
curl --location --request POST '/recipe/signinup' \--header 'api-key: ' \--header 'Content-Type: application/json' \--data-raw '{ "thirdPartyId": "google", "thirdPartyUserId": "106347997792363870000", "email": { "id": "johndoe@gmail.com" }}'