KindeK
Kinde•2y ago•
4 replies
Mario_Luigie

How can I change Kinde user ID in my code?

I create user in my MongoDB after creating user in Kinde Auth with register with Google. I get token from webhook, decode, verify and get payload.data.user. I can not see 'picture' field in user from token.

By using getKindeServerSession and getUser I see picture field with path string to picture in google. I would like to create newUser with values from token and save this newUser in MongoDB.

Next I want to change kinde user ID for _ID from MongoDB. How can I see 'picture' field in user from token and How can I change kinde user id in my code. Help me, Thank you 🙂
Was this page helpful?