Ramsai
Ramsai•9mo ago

Different user IDs in local and prod in the userinfo end point.

When I sign in with Google, in local I am receiving a value which is not my User ID in the sub field for the userinfo endpoint. But when I do the same in the application which is deployed , I am receiving the correct user ID in the sub. Could you please help me figure out the error?
3 Replies
Ramsai
RamsaiOP•9mo ago
Hi team, any update on this 🙂
Raccine
Raccine•9mo ago
Hey @Ramsai! The formatting of the user IDs across google & Zitadel will likely present differently. Can you give us a bit more context in terms of the user ID you're expecting?
shree_harsha
shree_harsha•9mo ago
Hi @Raccine, when a user logs in with an email/password or social login, can the sub value in the user info claims be considered the ZITADEL user ID? We noticed different values for the same email when logging in through other methods. If the sub value is inconsistent, is there another scope that returns the ZITADEL user ID regardless of the login flow?

Did you find this page helpful?