Function cookieSession

  • Type Parameters

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

    Parameters

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

    Returns MiddlewareHandler<Env, string, {}>