@r1tsu/payload
Version:
24 lines • 765 B
TypeScript
import type { Collection } from '../../collections/config/types.js';
import type { GeneratedTypes } from '../../index.js';
import type { PayloadRequestWithData } from '../../types/index.js';
import type { User } from '../types.js';
export type Result = {
exp?: number;
token?: string;
user?: User;
};
export type Arguments = {
collection: Collection;
data: {
email: string;
password: string;
};
depth?: number;
overrideAccess?: boolean;
req: PayloadRequestWithData;
showHiddenFields?: boolean;
};
export declare const loginOperation: <TSlug extends string | number | symbol>(incomingArgs: Arguments) => Promise<Result & {
user: GeneratedTypes['collections'][TSlug];
}>;
//# sourceMappingURL=login.d.ts.map