Interface TypedSessionStorage<Schema>

interface TypedSessionStorage<Schema extends z.ZodTypeAny> {
    commitSession(
        session: TypedSession<Schema>,
        options?: SerializeOptions,
    ): Promise<string>;
    destroySession(
        session: TypedSession<Schema>,
        options?: SerializeOptions,
    ): Promise<string>;
    getSession(
        cookieHeader?: null | string,
        options?: ParseOptions,
    ): Promise<TypedSession<Schema>>;
}

Type Parameters

  • Schema extends z.ZodTypeAny

Methods