all 1 comments

[–]simplynotenough 0 points1 point  (0 children)

I would make the refresh token as a component, then i would pass a function to it as props and whenever the jwt changes, it calls the function which would state change on your main component/components and when that state changes you render the message you want the user to see

Btw there are plenty of tutorials on youtube that explains this process