- cookieSession<
SecretBinding extends string,
Data = SessionData,
FlashData = Data,
>(
options: {
autoCommit?: boolean;
cookie: Omit<CookieOptions, "secrets"> & {
name: string;
secrets: GetCookieSecretsFunction<SecretBinding>;
};
},
): MiddlewareHandler<Env, string, {}> 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, {}>