magnificent-solstice-42554
02/08/2022, 1:14 PMsub
attribute as the userId in your database?
Or do you use some other custom userId?big-machine-42854
02/08/2022, 1:27 PMsub
as user_id might hurt in long run, as if in future if the credentials are required to be changed, like email, the new sub wont match to the user_id.
Using a custom (mapped) user id shall be better
We ran into this while working with AWS Cognito 🙂magnificent-solstice-42554
02/08/2022, 3:38 PMsub
will tie you to that identity provider and make migration to a new IDP difficult (should you ever need to do this).big-machine-42854
02/09/2022, 4:33 AM