using convex auth & nextjs router. using router.back() does not refresh auth in time.
i have a convex & nextjs app.
convex api that runs on the main page:
when i go to a subpage and click the back button to go back to main (via router.back() or router.push()), it gives me this "not signed in error".
from console logging, it seems like getAuthUserId is returning null and not updating. it seems to be saving the "is Authenticated" state
do you have recommendations?

0 Replies