The token plugin has an authentication type, so if authentication failed, we know it will throw an exception.