Adding code to delete invalid token
Merge branch 'RemoveInvalidToken' into 1.0.x