Hello, everyone. I am currently using passwordless recipe in my django project (SuperTokens Core ver...
k
Hello, everyone. I am currently using passwordless recipe in my django project (SuperTokens Core version: 4.3.0). i wanto to add possility to auth using Oauth2 Provider. this provider gives me info about the user and its phone number. i looked through the code of recipe (thirdparty passwordless) and api implementation and found that method
sign_in_up
of
RecipeImplementation
uses only email of the user and not phone number of user. its seems to me a bit strange because name of recipe is
thirdparty passwordless
. how can i change it so it will take into account phone number of a user?
r
hey @kuzyaross we currently only support email from the third party provider, and not phone numbers.
k
how can i link these users manually? i mean i have been using passwordless recipe for a long time now and it works great! ( and developer expirience is also wonderful) now i want to add thirpary integration. as i know, SP will have different databases for each recipe. so after auth using thirparty it will create new user. if i already have user with this phone number in my DB, i want to connect this new user with my existing user. can i achieve that ?
@rp_st
r
account linking is a feature that we still don't support. It will come soon. In the meantime, you can checkout our docs for account deduplication: https://supertokens.com/docs/thirdpartypasswordless/common-customizations/deduplication/overview
k
oh, i see. thank a lot! so i have another question then : is user_id unique among all recipes? or its unique together with recipe_type
r
User id is unique across all recipes.