UNPKG

pagamio-frontend-commons-lib

Version:

Pagamio library for Frontend reusable components like the form engine and table container

22 lines (21 loc) 1.06 kB
/** * @fileoverview Default authenticator processor implementation * Handles standard authentication flows without special transformations */ import type { AuthResponse, CustomAuthConfig } from '../../types'; import type { AuthenticatorProcessor } from '../types'; /** * Default authenticator processor * Handles the standard authentication process with basic validation * @template T - Type extending CustomAuthConfig */ export declare class DefaultAuthenticatorProcessor<T extends CustomAuthConfig> implements AuthenticatorProcessor<T> { /** * Process login credentials using the standard authentication flow * @param credentials - User login credentials * @param rememberMe - Whether to remember the user session * @param login - The login function from auth context * @returns Promise resolving to authentication response */ processLogin(credentials: Record<string, unknown>, rememberMe: boolean, login: (credentials: T['Credentials'], rememberMe: boolean) => Promise<AuthResponse<T>>): Promise<AuthResponse<T>>; }