patch for tokenauth