Working on migrating old authentication apis