@vendure/core
Version:
A modern, headless ecommerce framework
18 lines (17 loc) • 720 B
TypeScript
import { RequestContext } from '../../api/common/request-context';
import { VendureEvent } from '../vendure-event';
/**
* @description
* This event is fired when an attempt is made to log in via the shop or admin API `login` mutation.
* The `strategy` represents the name of the AuthenticationStrategy used in the login attempt.
* If the "native" strategy is used, the additional `identifier` property will be available.
*
* @docsCategory events
* @docsPage Event Types
*/
export declare class AttemptedLoginEvent extends VendureEvent {
ctx: RequestContext;
strategy: string;
identifier?: string | undefined;
constructor(ctx: RequestContext, strategy: string, identifier?: string | undefined);
}