noob saibot
noob saibot4mo ago

Convex Auth getUserIdentity() returns object without email

I have 2 applications: a nextjs and a react native expo app. The nextjs app uses the new convex auth lib for authentication while the expo app uses clerk. I am observing that when auth.getUserIndentity() is called from expo (in other word called within a function called from expo), it returns a user object with all keys: user name, phoneNmber, emailVerified...etc But when I call it from nextjs, it returns an object missing all above keys. Here is the returned object:
{
tokenIdentifier: 'https://xxx.convex.site|j97f82wcsk9m3zp81s5taen2jn6znhtp|n5753jkhrdgymmy0e3rsp6891x70a96b',
issuer: 'https://xxx.convex.site',
subject: 'j97f82wcsk9m3zp81s5taen2jn6znhtp|n5753jkhrdgymmy0e3rsp6891x70a96b'
}
{
tokenIdentifier: 'https://xxx.convex.site|j97f82wcsk9m3zp81s5taen2jn6znhtp|n5753jkhrdgymmy0e3rsp6891x70a96b',
issuer: 'https://xxx.convex.site',
subject: 'j97f82wcsk9m3zp81s5taen2jn6znhtp|n5753jkhrdgymmy0e3rsp6891x70a96b'
}
How can I use above object to identifier the user?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?