PierreP
Convex Community17mo ago
15 replies
Pierre

[React-Native] Custom Auth - JWT refresh issue

Hello, forwarding the comments on support-communityConvex Auth signaling unauthenticated in RN after inactive to this new one.

Problem:
When the app is in background/inactive, the JWT can expire during this period. When the app is put in foreground, it seems that the convex queries are rerun before a new JWT is fetched.
A symptom we see is that the ctx.auth.getUserIdentity() function returns null on Convex backend.
Was this page helpful?