setting auth type