made shared oauth handler