Sample react app login again after refresh

Take a look at the answer at SPA + Embedded Login + Token Refresh Strategy? - #2 by nicolas_sabena, see if any of the possibilities apply to your case.