api init with auth user method