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
I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More