add to invalid_token method so works in prod