I have been trying to validate the "refresh token" returned by Amazon Cognito Identity Provider via their boto3 python client. I've been using the validator at https://jwt.io.
When I paste the refresh token into the "encoded" box, it returns a header:
{
"cty": "JWT",
"enc": "A256GCM",
"alg": "RSA-OAEP"
}
but the tool also says "invalid signature" at the bottom.
I'm wondering if this is expected behavior? Are AWS Cognito refresh tokens not valid JWTs?