My website use OAuth to achieve social sign in, we need to create a unique local account for each OAuth users, currently we use String id as an identity of each unique user, but if two users from different OAuth providers with same id there will be collision.
My questions are:
No, user id is not unique across all OAuth providers, but if you connect it with the provider id then it will be.