This blog post is going to show you how to refresh sessions of Cognito User with Node.js and Express.
Your Refresh Token can be used along with the Access Token, and the Id Token to obtain a valid user session.
Here is the working example that I have for you.
Getting the tokens on login
Using the tokens to get a valid CognitoUser