handle unauthorized token eror in IAM Sample