Files
klz-cables.com/.pnpm-store/v10/files/65/6362d3b1894e201e487040b1471cdb89598a51418935033ad38d648f7269ce52da7380466b8ce7b2ce3f367f6fcb00b46607f51569d9d8eea749cf2315e12c
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

28 lines
1.1 KiB
Plaintext

import type { SanitizedCollectionConfig, TypeWithID } from '../collections/config/types.js';
import type { TypedUser } from '../index.js';
import type { Payload, PayloadRequest } from '../types/index.js';
import type { UntypedUser, UserSession } from './types.js';
/**
* Removes expired sessions from an array of sessions
*/
export declare const removeExpiredSessions: (sessions: UserSession[]) => UserSession[];
/**
* Adds a session to the user and removes expired sessions
* @returns The session ID (sid) if sessions are used
*/
export declare const addSessionToUser: ({ collectionConfig, payload, req, user, }: {
collectionConfig: SanitizedCollectionConfig;
payload: Payload;
req: PayloadRequest;
user: TypedUser;
}) => Promise<{
sid?: string;
}>;
export declare const revokeSession: ({ collectionConfig, payload, req, sid, user, }: {
collectionConfig: SanitizedCollectionConfig;
payload: Payload;
req: PayloadRequest;
sid: string;
user: null | (TypeWithID & UntypedUser);
}) => Promise<void>;
//# sourceMappingURL=sessions.d.ts.map