Renamed option auth_code to auth_type to better reflect its meaning