Don't shadow `type` in `auth` function, leftovers. :shit: :shit: