Hi iam trying to store the refreshed session data from the cognito as a constant or variable so i can use it somewhere else.Any help would be appreciated. i have attached my code below
cognitoUser.refreshSession(refreshToken, (err, session) => {
if (err) {
console.log(err);
} else {
console.log(session);
}
}
So i want to store the session value of this function as a constant or variable outside this function