noob saibotN
Convex Communityโ€ข15mo agoโ€ข
3 replies
noob saibot

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();
    ...
  }
})

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.
Was this page helpful?