BeforeLoginConfirmationFunction
BeforeLoginConfirmationFunction = (
params?) =>Promise<{body: {allowedLogin?:boolean;redirectTo?:string; };error?:string; }>
Allow to get user data before login confirmation, will triger when user try to login.
Parameters
| Parameter | Type | Description |
|---|---|---|
params? | { adminforth: IAdminForth; adminUser: AdminUser; extra?: HttpExtra; response: IAdminForthHttpResponse; sessionDuration?: string; } | - |
params.adminforth? | IAdminForth | Adminforth instance. |
params.adminUser? | AdminUser | Admin user performing the action. |
params.extra? | HttpExtra | Extra HTTP information. Prefer using extra.response over the top-level response field. |
params.response? | IAdminForthHttpResponse | HTTP response object. Deprecated Since 1.2.9. Will be removed in 2.0.0. Use extra.response instead. |
params.sessionDuration? | string | Duration of session in format "1s", "1m", "1h", or "1d" (e.g., "30d" for 30 days) |
Returns
Promise<{ body: { allowedLogin?: boolean; redirectTo?: string; }; error?: string; }>