For this scenario, the user would log in via your website.
Once the user has logged into your website, a web session linked to such user will exist. Usually, this is done by keeping the user identifier in a session object.
Your website would provide a Yoti button inside the logged in area to enable them enable them to link another account to the first one. The user would click on this Yoti link/button and perform a Yoti login.
This interaction takes place within the same web session, which means you can store the Yoti Returning User ID that you obtain from the Yoti SDK inside the same session object that contains the username.
The 2 accounts are now linked within the web session context. To make this binding persistent, all you need to do is saving this association (Yoti Remember me ID -> Username/User-ID) within your database.
Advantages of linking accounts:
- Allows users to login smoothly without creating a separate profile for each.
- Allows registered users to use a new social or passwordless Yoti login but continue using their existing profile.
- Allows users that registered using a Yoti to link to an account with a complete profile.
- Allows your site to retrieve user profile data stored in various connections.
For more information please go to our developer page: https://www.yoti.com/developers/documentation
For any further support please email: firstname.lastname@example.org
Once we have answered your question we may contact you again to discuss Yoti products and services. If you’d prefer us not to do this, please let us know when you e-mail.