displaying error if account is already linked using linkSocial()
Hello,
I am currently performing the below code on to link a social account to my user. Upon their return to my site I would like to check if the social they just linked was already linked to their account, this way I could show them an error saying "account xyz was already linked, please ensure to logout of your tiktok account if you want to link more."
I have no idea how I am supposed to do this, because I have no control over knowing what account they are logged into on tiktok, until they complete the oauth flow, and I cannot use the returned value of
linkSocial because they have to leave the page to go through the oauth flow.
0 Replies