At the end of every login flow, you will get back an
ID Token, among other things.
ID Token is a
JWT (JSON Web Token). Decode the
ID Token to find the
property in it. The
sub property contains the users'
Trusted ID and link it to the profile of your user. Make sure
Trusted ID is unique on your platform to make your users unique.