Adding in the auth API stuff