Mario_Luigie
Mario_Luigie
KKinde
Created by Mario_Luigie on 7/8/2024 in #💻┃support
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 🙂
5 replies