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 to link the two accounts. The user would click on this Yoti link/button and perform a Yoti login by scanning the QR code.
The user will be asked to consent to sending through their attributes on their mobile. Once completed the call back URL defined in the Yoti Dashboard will be invoked with a token.This token will allow the SDK to retrieve the Yoti profile from Yoti server.
This interaction takes place within the same web session, which means you can link the Yoti User ID you obtain from the Yoti SDK, with the same session object that contains the user identifier.
To make this binding persistent, all you need to do is saving this association (Yoti ID -> Username/User-ID) within your database.
Potential advantages of linking accounts:
- Allows users to login smoothly without creating separate profiles.
- Allows registered users to use the Yoti login but continue using their existing profile.
- Allows users that registered using a Yoti to link to an account with a complete profile.
For more information please go to our developer page here
For any further support please email: email@example.com
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.