- session<Data = SessionData, FlashData = Data>(
options: {
autoCommit?: boolean;
createSessionStorage(
c: Context<any, any, {}>,
): SessionStorage<Data, FlashData>;
},
): MiddlewareHandler<Env, string, {}> Type Parameters
- Data = SessionData
- FlashData = Data
Parameters
- options: {
autoCommit?: boolean;
createSessionStorage(
c: Context<any, any, {}>,
): SessionStorage<Data, FlashData>;
}
Returns MiddlewareHandler<Env, string, {}>