noob saibot
noob saibot•2mo ago

getUserIdentity returns null in Expo Clerk (Android)

I have a react native expo application and I use convex with clerk for authentication. The getUserIdentity is returning null when called in a server function. This behaviour occurs only when the client is android. This behaviour does not occur with an IOS device (iphone). This is how I make the call in a server function:
export default mutation({
handler: async (ctx) => {
const identity = await ctx.auth.getUserIdentity();
...
}
})
export default mutation({
handler: async (ctx) => {
const identity = await ctx.auth.getUserIdentity();
...
}
})
It is worth noting that this error started occuring when I upgraded Expo to the latest SDK 52 version. Before that, everything was working fine.
3 Replies
Convex Bot
Convex Bot•2mo ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
FleetAdmiralJakob 🗕 🗗 🗙
Did you update any other depedency aswell except Expo? like clerk or convex or anything?
noob saibot
noob saibotOP•2mo ago
@FleetAdmiralJakob 🗕 🗗 🗙 I fixed the issue by, indeed, updating all other dependencies

Did you find this page helpful?