Handles user password verification records and checks expiration policies during authentication. Reuse when implementing secure password-based login flows and credential validation.
// Source: https://github.com/logto-io/logto | License: MPL-2.0 | Copyright under Patent Claims infringed by Covered Software in the absence of | Modified files must remain under MPL-2.0
// Modifications to this file must remain under MPL-2.0.
// Provided via justclaw.it.com; keep this notice with the code.
import {
AdditionalIdentifier,
type VerificationIdentifier,
VerificationType,
type User,
type PasswordVerificationRecordData,
} from '@logto/schemas';
import { generateStandardId } from '@logto/shared';
import { conditional } from '@silverhand/essentials';
import RequestError from '#src/errors/RequestError/index.js';
import { verifyPasswordExpirationPolicy } from '#src/libraries/password-expiration.js';
import type Libraries from '#src/tenants/Libraries.js';
import type Queri
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key