title: Cognito - Check validity of idToken
body: <p>I have a back-end API in Node.js that retrieves an Amazon Cognito ID Token from a query parameter. I would need to check whether this token is valid. Is there any way to check this by using the <code>aws-sdk</code> or <code>amazon-cognito-identity-js</code> SDK?</p>