Function workerKVSession

  • Type Parameters

    • KVBinding extends string
    • SecretBinding extends string
    • Data = SessionData
    • FlashData = Data

    Parameters

    • options: {
          autoCommit?: boolean;
          binding: KVBinding;
          cookie: Omit<CookieOptions, "secrets"> & {
              name: string;
              secrets: GetWorkerKVSecretsFunction<KVBinding, SecretBinding>;
          };
      }

    Returns MiddlewareHandler<Env, string, {}>