Added client-side auth to the wrapper