Updated api auth methods