Please I would like to know how do I keep a user logged in using JWT through a REST API. Because the token given by JWT expires within a particular time frame and within this time frame it could be possible that the user is still on the app.
I am thinking of allowing the client side application to make asynchronous requests when the token expires. But the one would also make the client side stall a bit because the token is invalid.