Don't shadow `type` in `auth` function. :shit:
Separate auth tests too.