func New(ctx context.Context, dsn string) (authdb.UserStore, error) {
	p, err := url.Parse(dsn)
	if err != nil {
		return nil, err
	}
	if p.User != nil {
		return nil, errors.New("DSN must not contain authentication credentials")
	}
	c, err := chttp.New(ctx, dsn)
	return &client{c}, err
}
// New returns a new auth user store, which authenticates users against a remote
// CouchDB server.
New returns a new auth user store, which authenticates users against a remote
CouchDB server.
// New returns a new auth user store which authenticates users against a remote // CouchDB server .
func New(ctx context.Context, dsn string) (authdb.UserStore, error) {
	p, err := url.Parse(dsn)
	if err != nil {
		return nil, err
	}
	if p.User != nil {
		return nil, errors.New("DSN must not contain authentication credentials")
	}
	c, err := chttp.New(ctx, dsn)
	return &client{c}, err
}
func New ( ctx context . Context , dsn string ) ( authdb . UserStore , error ) { p , err := url . Parse ( dsn ) if err != nil { return nil , err } if p . User != nil { return nil , errors . New ( " " ) } c , err := chttp . New ( ctx , dsn ) return & client { c } , err }
New returns a new auth user store, which authenticates users against a remote
CouchDB server.
New returns a new auth user store which authenticates users against a remote CouchDB server .