[React-Native] Custom Auth - JWT refresh issue
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.