firestore: provide owner authority for emulator
Fixes
@@ -64,7 +64,7 @@ func NewClient(ctx context.Context, projectID string, opts ...option.ClientOptio
// Environment variables for gcloud emulator:
// https://cloud.google.com/sdk/gcloud/reference/beta/emulators/firestore/
if addr := os.Getenv("FIRESTORE_EMULATOR_HOST"); addr != "" {
- conn, err := grpc.Dial(addr, grpc.WithInsecure())
+ conn, err := grpc.Dial(addr, grpc.WithInsecure(), grpc.WithAuthority("owner"))
if err != nil {
return nil, fmt.Errorf("firestore: dialing address from env var FIRESTORE_EMULATOR_HOST: %v", err)
}
